Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int x,y;
- cout << "Podaj wiek pierwszej osoby: " ;
- cin >> x;
- cout << "Podaj wiek drugiej osoby: " ;
- cin >> y;
- if ( x > y)
- {
- cout << "Pierwsza osoba jest starsza od drugiej." << endl;
- }
- else if ( y > x)
- {
- cout << "Druga osoba jest starsza od pierwszej." << endl;
- }
- else{
- cout << "Macie po tyle samo lat." << endl;
- }
- if ( x > 100 && y > 100)
- {
- cout << "Troche juz wam sie zyje :D" << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement