I really need some help writing my personal statement for a nursing program.

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

Was this solution helpful to you?

Other answers

What do you have so far? What are you stuck on?

Justin

Related Q & A:

Just Added Q & A:

Find solution

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.