Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- //#include <bits/stdc++.h>
- using namespace std;
- struct ucenik {
- string ime;
- string prezime;
- int godini;
- double prosek;
- string sredno_uciliste;
- };
- int main() {
- int n;
- cin >> n;
- ucenik ucenici[n];
- for(int i = 0; i < n; i++) {
- cin >> ucenici[i].ime >> ucenici[i].prezime >> ucenici[i].godini >> ucenici[i].prosek >> ucenici[i].sredno_uciliste;
- }
- for(int i = 0; i < n; i++) {
- cout << ucenici[i].ime << " " << ucenici[i].prezime << " "<< ucenici[i].godini << " " << ucenici[i].prosek << " "<< ucenici[i].sredno_uciliste << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement