Advertisement
Josif_tepe

Untitled

Feb 19th, 2025
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct Student {
  5.     int godini;
  6.     float prosek;
  7.     int dali_ima_polozheno_poveke_od_5_ispiti;
  8.    
  9. };
  10.  
  11. int main()
  12. {
  13.    
  14.     Student s[3];
  15.    
  16.    
  17.     for(int i = 0; i < 3; i++) {
  18.         cin >> s[i].godini >> s[i].prosek >> s[i].dali_ima_polozheno_poveke_od_5_ispiti;
  19.     }
  20.    
  21.     for(int i = 0; i < 3; i++) {
  22.         cout << s[i].godini << " " << s[i].prosek << " " << s[i].dali_ima_polozheno_poveke_od_5_ispiti << endl;
  23.     }
  24.    
  25.     return 0;
  26. }
  27.  
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement