Question: Write a C program that calculates and prints the sum, difference, product, quotient, and r e m ainder (modulus) of two integer numbers (shown below)

Write a C program that calculates and prints the sum, difference, product,

quotient, and remainder (modulus) of two integer numbers (shown below) that will be the month of your birth plus 10 and the day of your birth plus 100. (for example my birth month + 10 is 22 and my day plus 100 is 116.)

Once you create, compile, link and run your program, all the following should be output from your program, except your number will be different:

My birthday is on December 16.

The two numbers I used by this program are 116 and 22. The Sum of 116 and 22 equals 138

The Difference of 116 and 22 equals 94

The Product of 116 and 22 equals 2552

The Quotient of 116 and 22 equals ?? with remainder ?? Thanks for using Jim's first program.

The terms sum, difference, product, and quotient refer to the operations of addition, subtraction, multiplication and division and the modulus operator for the remainder.

The correct output spacing is part of the program too.

This program requires about 7 integer variables.

This program requires about 2 lines of code (not including variable declarations, comments, blank lines). Don't worry if you need more lines.

No calculations are to be done in the printf statements.

No numbers hard-coded, they all need to be variables.

There should be a line in your code that looks something like this(with different numbers of course!):

int num1 = 116, num2 = 22;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!