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