I need help writing a program in C calculating sum difference product quotient and remainder of 2 integers?
-
Write a C program that calculates and prints the sum, difference, product, quotient, and remainder (modulus) of two integer numbers (shown below). Once you create, compile, link and run your program, the following should be output from your program: This program will do some arithmetic operations. The 2 numbers used by this program are 60 and 25. The Sum of 60 plus 25 is 85 The Difference of 60 minus 25 is 35 The Product of 60 times 25 is 1500 The Quotient of 60 divided by 25 is 2 with a remainder of 10 Thank you for using the program.
-
Answer:
- Remove the first backslash in your second call to printf. - Define main as "int main(void)" - Remove the variable "sum" (it isn't used.) - Type #include <stdio.h> at the head of the file. - Remove the other two #includes. Aside from those things, you have a perfect program. Ensure that your compiler is C99/C11 compliant.
ChanelLo... at Yahoo! Answers Visit the source
Other answers
What do you have so far? What are you stuck on?
Justin
Related Q & A:
- I need help with a song I heard.Best solution by Yahoo! Answers
- I need help writing an objective for my resume.Best solution by resume-help.org
- I need help with a Romeo and Juliet essay.Best solution by Yahoo! Answers
- I need help choosing a camera.Best solution by Yahoo! Answers
- I need help simplifying a rational expression.Best solution by purplemath.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.