top of page
Click here to go to the home page of AskTheCode.

Hacker Rank solution for Structs In C++

Team ATC

Asked: Anonymously | Category: C++

 

#include <cmath>

#include <cstdio>

#include <vector>

#include <iostream>

#include <algorithm>

using namespace std;


struct Student

{

int age,standard;

string first_name,last_name;

};


int main() 

{

Student st;

cin >> st.age >> st.first_name >> st.last_name >> st.standard;


cout << st.age << " " << st.first_name << " " << st.last_name << " " << st.standard;


return 0;

}


Recent Posts

See All

Comentários


bottom of page