Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- // korisnikot ni vnesuva eden broj n, i treba da vneseme za n studenti nivnoto ime, prezime, broj_na_indeks i prosek
- struct student{
- string ime;
- string prezime;
- int broj_na_indeks;
- double prosek;
- };
- int main()
- {
- student S;
- cin >> S.ime;
- cin >> S.prezime;
- cin >> S.broj_na_indeks;
- cin >> S.prosek;
- cout << S.ime << " " << S.prezime << " " << S.broj_na_indeks << " " << S.prosek << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment