Advertisement
Josif_tepe

Untitled

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