Advertisement
Josif_tepe

Untitled

Oct 7th, 2023
651
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.69 KB | None | 0 0
  1. #include <iostream>
  2. //#include <bits/stdc++.h>
  3. using namespace std;
  4.  
  5.  
  6.  
  7. int main() {
  8.     int n;
  9.     cin >> n;
  10.    
  11.     string ime[n];
  12.     string prezime[n];
  13.     int godini[n];
  14.     double prosek[n];
  15.     string sredno_uciliste[n];
  16.    
  17.     for(int i = 0; i < n; i++) {
  18.         cin >> ime[i] >> prezime[i] >> godini[i] >> prosek[i] >> sredno_uciliste[i];
  19.     }
  20.    
  21.     for(int i = 0; i < n; i++) {
  22.         cout << "Ime: " << ime[i] << endl;
  23.         cout << "Prezime: " << prezime[i] << endl;
  24.         cout << "Godini: " << godini[i] << endl;
  25.         cout << "Prosek: " << prosek[i] << endl;
  26.         cout << "Sredno uciliste: " << sredno_uciliste[i] << endl;
  27.     }
  28.     return 0;
  29. }
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement