Hello guys,
My program works just fine but when I input negative integers it brings wrong output
If product and sum of A and B it should print Gotcha
If sum is greater than product it should print Sum
If product is greater than sum it should print Product
Use int a, b; and not float a, b; to avoid errors associated with the finite accuracy of the latter and the truncation used to produce sum and product.
When you have changed that, please us give us examples of input/output that you think are giving the wrong result.