Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main()
- {
- int num1;
- cout << "Insert a number\n ";
- cin >> num1;
- cout << "The opposite number from the first function is: \n";
- oppo1(num1); cout << "\n";
- cout <<"The opposite number from the second function is:\n"<< oppo2(num1)<<endl;
- cout << "compare which one is bigger: \n";
- getbig(num1) == 0 ? cout << " they are equal\n":getbig(num1)==1? cout<<"original number is bigger\n":cout<<"The opposite number is bigger\n" ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement