Advertisement
Josif_tepe

Untitled

Sep 1st, 2021
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct student {
  5.     string ime, prezime;
  6.     int godini;
  7.     string grad;
  8. };
  9. int main() {
  10.     student s;
  11.     cin >> s.ime >> s.prezime >> s.godini >> s.grad;
  12.     cout << s.ime << " " << s.prezime << " " << s.godini << " " << s.grad << endl;
  13.     return 0;
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement