josiftepe

Untitled

Nov 15th, 2020
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  /// daden e broj N sto oznacuva brojot na studenti. Sakame da gi ispecatime site studenti. Sekoj student ime ime, prezime, broj na indeks i prosek
  5.  
  6. struct student { // student e ime na strukturata
  7.     string ime;
  8.     string prezime;
  9.     int broj_na_indeks;
  10.     double prosek;
  11. };
  12. int main()
  13. {
  14.  
  15.     student S;
  16.     cin >> S.ime >> S.prezime >> S.broj_na_indeks >> S.prosek;
  17.     cout << S.ime << " " << S.prezime << " " << S.broj_na_indeks << " " << S.prosek << endl;
  18.    
  19.     return 0;
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment