Advertisement
rengetsu

cppstudio_01_02

Jul 13th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     //my
  6.     /**
  7.     int a, b, f, x;
  8.     cin >> a >> b >> f;
  9.     x = (a+b-f/a)+f*a*a-(a+b);
  10.     cout << x;
  11.     return 0;
  12.     **/
  13.    
  14.     //de wey
  15.     int a, b, f, x;
  16.     cin>>a;
  17.     cin>>b;
  18.     cin>>f;
  19.     x=(a + b - f / a) + f * a * a - (a + b);
  20.     cout << x << endl;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement