Advertisement
Qpel

1užd rk

Dec 20th, 2016
366
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.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int a, b;
  8.     cout << "Iveskite a = ";
  9.     cin >> a;
  10.     cout << "Iveskite b = ";
  11.     cin >> b;
  12.  
  13.     int r1 = (a-b-12)*2;
  14.     int c;
  15.     cin >> c;
  16.     int r2 = (r1-c-13)*2;
  17.     cout << r2;
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement