SHARE
TWEET

Untitled

a guest Jan 21st, 2020 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {  
  6.     int g;
  7.     cin>>g;
  8.     g = g/8*2;
  9.    
  10.     if(g == 2.4375)
  11.     {
  12.         cout<<g*32/3+18<<endl;
  13.     }
  14.     else if(g == 8)
  15.     {
  16.         cout<<2*g*10/4<<endl;
  17.     }
  18.     else if(g == 9.75)
  19.     {
  20.         cout<<g*12/13+38<<endl;
  21.     }
  22.     else
  23.     {
  24.         cout<<g+47<<endl;
  25.     }
  26.    
  27.     return 0;
  28. }
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