Advertisement
Josif_tepe

Untitled

Jan 19th, 2025
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct Student {
  5.     string name, surname;
  6.     int age;
  7.     float average;
  8. };
  9.  
  10. int main()
  11. {
  12.     Student s1;
  13.     s1.name = "Abc";
  14.     s1.surname = "BCD";
  15.     s1.age = 10;
  16.     s1.average = 7.8;
  17.    
  18.     cout << s1.name << " " << s1.surname << " " << s1.age << " " << s1.average << endl;
  19.    
  20.  
  21.     return 0;
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement