kananasgarli90

Dördündən ən böyüyü

Oct 17th, 2020
447
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4.     int a, b, c, d;
  5.     cin>>a>>b>>c>>d;
  6.     if(a >= b && a >= c && a >= d){
  7.         cout<<a;
  8.     }
  9.     else if(b >= c && b >= d){
  10.         cout<<b;
  11.     }
  12.     else if(c >= d){
  13.         cout<<c;
  14.     }
  15.     else{
  16.         cout<<d;
  17.     }
  18. }
RAW Paste Data