Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement