DawidG

Zadanie4 - Część 2

Nov 16th, 2020 (edited)
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int liczba1;
  6. int liczba2;
  7.  
  8. int main()
  9. {
  10.     cout<<"Podaj pierwsza liczbe :" ;
  11.     cin>>liczba1;
  12.  
  13.     cout<<"Podaj druga liczbe :";
  14.     cin>>liczba2;
  15.  
  16.   if (liczba1>liczba2)
  17.   {
  18.       cout<<liczba1;
  19.   }
  20.     else if (liczba1==liczba2)
  21.     {
  22.         cout<<"Obie liczby sa takie same";
  23.     }
  24.     else
  25.     {
  26.         cout<<liczba2;
  27.     }
  28.  
  29.     return 0;
  30. }
  31.  
  32.  
Add Comment
Please, Sign In to add comment