Advertisement
Josif_tepe

Untitled

Oct 23rd, 2024
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct Student {
  5.     int id, age, grade;
  6.     float gpa;
  7.    
  8. };
  9.  
  10. int main() {
  11.    
  12.     Student s;
  13.     cin >> s.id >> s.age >> s.grade >> s.gpa;
  14.    
  15.     cout << s.id << " " << s.age << " " << s.grade << " " << s.gpa << endl;
  16.    
  17.  
  18.     return 0;
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement