Please Login in order to post a comment
struct Student{ int age,standard ; string first_name, last_name; };
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; /* add code for struct here. */ 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; }
struct Student{ int age; string first_name; string last_name; int standard; };
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> 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; }
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> using namespace std; /* add code for struct here. */ 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 << " " no need to thank me !!! :) << st.standard; return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
struct Student{ int age; string first_name; string last_name; int standard; };