Advertisement
MeehoweCK

Untitled

Feb 23rd, 2024
821
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. int main() {
  4.     int a, b, c;
  5.     std::cout << "Podaj trzy liczby calkowite: ";
  6.     std::cin >> a >> b >> c;
  7.     if (a >= b && b >= c) {
  8.         std::cout << "Najwieksza liczba, ktora podales jest " << a << ".\n";
  9.         return 0;
  10.     }
  11.     if (b >= a && b >= c) {
  12.         std::cout << "Najwieksza liczba, ktora podales jest " << b << ".\n";
  13.         return 0;
  14.     }
  15.     std::cout << "Najwieksza liczba, ktora podales jest " << c << ".\n";
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement