Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- struct Student {
- int id, age, grade;
- float gpa;
- };
- int main() {
- Student s;
- cin >> s.id >> s.age >> s.grade >> s.gpa;
- cout << s.id << " " << s.age << " " << s.grade << " " << s.gpa << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement