Advertisement
Josif_tepe

Untitled

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