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