Advertisement
Josif_tepe

Untitled

Mar 12th, 2023
593
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. class Student {
  5. public:
  6.    
  7.     char ime[50];
  8.     int godini;
  9.     double prosek;
  10. };
  11. int main() {
  12.     Student s;
  13.    
  14.     cin >> s.ime >> s.godini >> s.prosek;
  15.     cout << s.ime << " " <<  s.godini << " " << s.prosek << endl;
  16.    
  17.    
  18.  
  19.     return 0;
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement