Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. void main()
  2. {
  3. int num1;
  4. cout << "Insert a number\n ";
  5. cin >> num1;
  6. cout << "The opposite number from the first function is: \n";
  7. oppo1(num1); cout << "\n";
  8. cout <<"The opposite number from the second function is:\n"<< oppo2(num1)<<endl;
  9. cout << "compare which one is bigger: \n";
  10. getbig(num1) == 0 ? cout << " they are equal\n":getbig(num1)==1? cout<<"original number is bigger\n":cout<<"The opposite number is bigger\n" ;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement