Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int w,x,y,z;
- cout << "* Please insert 4 integer numbers \n";
- cout << "1st number: ";
- cin >> w;
- cout << "2nd number: ";
- cin >> x;
- cout << "3rd number: ";
- cin >> y;
- cout << "4th number: ";
- cin >> z;
- cout << "\n";
- int geng=w*x;
- geng=geng+w*x;
- x=x-(y-z);
- int team=geng+x;
- cout << "Your 1st answer,Geng="<< geng << endl;
- cout << "Your 2nd answer,x="<< x << endl;
- cout << "Your 3rd answer,Team="<< team << endl;
- cout << "\n";
- cout << "You completed your mission\n";
- cout << "See you for the next mission\n";
- cout << "--------BYE BYE---------------";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement