Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int rozm;
- struct Zwierze
- {
- string imie;
- int wiek;
- string plec;
- };
- int main()
- {
- Zwierze pies;
- cout << "Podaj imie Psa: ";
- cin >> pies.imie;
- cout << "Podaj wiek Psa: ";
- cin >> pies.wiek;
- cout << "Podaj plec Psa: ";
- cin >> pies.plec;
- cout << pies.imie << endl;
- cout << pies.wiek << endl;
- cout << pies.plec << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement