Advertisement
Josif_tepe

Untitled

Mar 26th, 2021
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.52 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main() {
  5.     int n;
  6.     scanf("%d", &n);
  7.     char ime[n][101];
  8.     char prezime[n][101];
  9.     int godina_na_ragenje[n];
  10.     double prosek[n];
  11.    
  12.     for(int i = 0; i < n; i++) {
  13.         scanf("%s", ime[i]);
  14.         scanf("%s", prezime[i]);
  15.         scanf("%d", &godina_na_ragenje[i]);
  16.         scanf("%lf", &prosek[i]);
  17.     }
  18.    
  19.     for(int i = 0; i < n; i++) {
  20.         printf("%s %s %d %lf\n", ime[i], prezime[i], godina_na_ragenje[i], prosek[i]);
  21.     }
  22.        
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement