Two integers must be compared before the arithmetic


1. Make a C program that will input two integers and then to enter an option as follows:

1 = to add the two integers.

2 = to subtract the second integer from the first.

3 = to multiply the integers

4 = to divide the first integer by the second integer.

Display an error message if the user enters an option other than 1 through 4 or if the user chooses the divide option by enters 0 for the second integer. Print the results of the arithmetic.T The filename will be Calculate.c

2. Modify the previous program. If the chosen option is 2, the two integers must be compared before the arithmetic operation.

Subtract the two integers provided the first integer is greater than the second integer, otherwise add the two integers and subtract the second integer from the first integer.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Two integers must be compared before the arithmetic
Reference No:- TGS0661478

Expected delivery within 24 Hours