We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
+ 0 comments #include <iostream> using namespace std; struct Student{ int age,standard; string first_name, last_name; }; int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ Student student; cin >> student.age >> student.first_name >> student.last_name>> student.standard; cout << student.age << " " << student.first_name << " " << student.last_name << " " << student.standard << endl; return 0; }
+ 0 comments struct Student{ string first_name, last_name; int age, standard; };
+ 0 comments struct Student{ int age; string first_name; string last_name; int standard; };
+ 0 comments include
include
include
include
include
using namespace std;
struct Student{ int age; string first_name; string last_name; int standard;
};
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;
}
+ 0 comments include
include
include
include
include
using namespace std;
class student{ public: int age; string fname; string lname; int standard;
};
int main() { student s;
cin>> s.age >> s.fname >> s.lname >> s.standard; cout<< s.age <<" "<< s.fname << " "<< s.lname <<" "<< s.standard; return 0;
}
Load more conversations
Sort 229 Discussions, By:
Please Login in order to post a comment