Advertisement
Josif_tepe

Untitled

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