SHARE
TWEET

Untitled

a guest Feb 22nd, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<iostream>
  2. #include<fstream>
  3. using namespace std;
  4. ifstream fin("maxim3.in");
  5. ofstream fout("maxim3.out");
  6. int main ()
  7. {
  8.     int a,b,c;
  9.     fin>>a>>b>>c;
  10.     if(a>b && a>c)
  11.     {
  12.         fout<<a;
  13.     }
  14.     else
  15.     if(b>a && b>c)
  16.     {
  17.         fout<<b;
  18.     }
  19.     else
  20.         if(c>a && c>b)
  21.     {
  22.         fout<<c;
  23.     }
  24.     fin.close ();
  25.     fout.close();
  26.     return 0;
  27.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top