Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main() {
- int n;
- scanf("%d", &n);
- char ime[n][101];
- char prezime[n][101];
- int godina_na_ragenje[n];
- double prosek[n];
- for(int i = 0; i < n; i++) {
- scanf("%s", ime[i]);
- scanf("%s", prezime[i]);
- scanf("%d", &godina_na_ragenje[i]);
- scanf("%lf", &prosek[i]);
- }
- for(int i = 0; i < n; i++) {
- printf("%s %s %d %lf\n", ime[i], prezime[i], godina_na_ragenje[i], prosek[i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement