Advertisement
Josif_tepe

Untitled

Sep 1st, 2021
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4.     int n;
  5.     cin >> n;
  6.     string ime[n];
  7.     string prezime[n];
  8.     int godini[n];
  9.     string grad[n];
  10.    
  11.     for(int i = 0; i < n; i++) {
  12.         cin >> ime[i] >> prezime[i] >> godini[i] >> grad[i];
  13.     }
  14.    
  15.     for(int i = 0; i < n; i++) {
  16.         cout << ime[i] << " " << prezime[i] << " " << godini[i] << " " << grad[i] << endl;
  17.     }
  18.     return 0;
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement