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