Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int vm;
- int vd;
- int a;
- int b;
- int main()
- {
- a=5;
- b=10;
- vd=a-b;
- vm=10;
- cout << vd <<","<< vm <<endl;
- if(vd<0)
- {vm=vm-1;
- vd=vd-2*vd;}
- cout << vd <<","<< vm <<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement