Advertisement
rengetsu

ProcedurProgramavimas_1.12

Feb 20th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     long double a, b, c;
  9.  
  10.     cin >> a;
  11.     cin >> b;
  12.     cin >> c;
  13.  
  14.     if (a > b && a > c)
  15.         cout << a;
  16.     else if (b > c)
  17.         cout << b;
  18.     else cout << c;
  19.  
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement