The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 3 Days Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
Produce a C program that prompts a user for two integers (ints) and stores the two integers the user types into the console. Print the product, quotient, remainder, sum, and difference of the two integers to the console (see below for formatting). Use the first integer the user enters and print a statement to the console identifying the number as positive, negative, or 0. Only submit the .c file. The format should match the sample runs below.
Â
Sample Run 1:
Enter two numbers: 5 4
5 * 4 = 20
5 / 4 = 1
5 % 4 = 1
5 + 4 = 9
5 - 4 = 1
Your first number is positive.
Â
Sample Run 2:
Enter two numbers: 0 3
0 * 3 = 0
0 / 3 = 0
0 % 3 = 0
0 + 3 = 3
0 - 3 = -3
Your first number is zero.
Â
Sample Run 3:
Enter two numbers: -3 8
-3 * 8 = -24
-3 / 8 = 0
-3 % 8 = -3
-3 + 8 = 5
-3 - 8 = -11
Your first number is negative.
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly