Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int x;
- int y;
- cout << "Podaj pierwsza liczbe:" << endl;
- cin >> x;
- cout << "Podaj druga liczbe: " << endl;
- cin >> y;
- if(x < 0)
- {
- x = x * -1;
- }
- if (y < 0)
- {
- y = y * -1;
- }
- if(x > y)
- {
- cout << "Pierwsza liczba ma wieksza wartosc" << endl;
- }
- else
- {
- cout << "Druga liczba ma wieksza wartosc" << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment