Advertisement
Josif_tepe

Untitled

Oct 23rd, 2024
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct Avtomobil {
  5.  
  6.     string model;
  7.     string make;
  8.     int first_registration;
  9.     int km;
  10.     int damage;
  11.    
  12. };
  13.  
  14. int main() {
  15.    
  16.     Avtomobil m;
  17.     m.model = "mercedes";
  18.     m.make = "S class";
  19.     m.first_registration = 2020;
  20.     m.km = 2000;
  21.     m.damage = 0;
  22.    
  23.     cout << m.model << " " << m.make << " " << m.first_registration << " " << m.km << " " << m.damage << endl;
  24.  
  25.     return 0;
  26. }
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement