Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- struct Fakultet{
- char ime[50];
- int godina;
- float prosek;
- int br_studenti;
- };
- int main(){
- int i,n;
- printf("N=");
- scanf("%d", &n);
- struct Fakultet f[n];
- for(i=0; i<n; i++){
- scanf("%s%d%f%d", f[i].ime, &f[i].godina, &f[i].prosek, &f[i].br_studenti);
- }
- for(i=0; i<n; i++){
- printf("%s %d %f %d", f[i].ime, f[i].godina, f[i].prosek, f[i].br_studenti);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement