Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 19 and my day plus 100 is 111.) Once you create, compile, link and run your program, all the following should be output from your program, except your number will be different Jim's birthday is on September 12 The two numbers I used by this program are 112 and 19 The Sum of 112 and 19 equals 131 The Difference of 112 and 19 equals 93 The Product of 112 and 19 equals 2128 The Quotient of 112 and 19 equals 5 with remainder 17 Thanks for using Jim's first program. Note: The Blue text represents the "output" from your program and is shown for clarity only here. It is not required that your output be in this color. (Do not even attempt to try!) The terms sum, difference, product, and quotient refer to the operations of addition, subtraction, multiplication and division and the modulus operator for the remainder Make sure that you use YOUR birthday and YOUR name. The correct output spacing is part of the program too Hints * 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 * I do not want calculations done in the printf statements! * I do not want any numbers hard-coded, they all need to be variables * You should have a line in your code that looks something like this(with different numbers of course!) int num1 112, num2 19
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started