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