answersLogoWhite

0


Best Answer

A C program to divide, add, multiply and subtract two numbers; #include int main() { int first, second, add, subtract, multiply; float divide; printf("Enter two integersn"); scanf("%d%d", &first, &second); add = first + second; subtract = first - second; multiply = first * second; divide = first / (float)second; //typecasting printf("Sum = %dn",add); printf("Difference = %dn",subtract); printf("Multiplication = %dn",multiply); printf("Division = %.2fn",divide); return 0; }

User Avatar

Wiki User

โˆ™ 2014-06-18 10:52:02
This answer is:
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
User Avatar
Study guides
๐Ÿ““
See all Study Guides
โœ๏ธ
Create a Study Guide

Add your answer:

Earn +20 pts
Q: Write a program to divide add multiply and subtract two numbers?
Write your answer...
Submit
Related questions

How can a GUI of a program to add subtract multiply and divide the two numbers look like?

Take a look at the Windows Calculator.


How do you multiply consecutive numbers?

you divide and divide again then multiply then add then subtract then finally get the root


What happens when you add subtract multiply and divide rational numbers?

If you add, subtract or multiply rational numbers, the result will be a rational number. It will also be so if you divide by a non-zero rational number. But division by zero is not defined.


What are the four fundamentals operation with decimal numbers?

Add, subtract, multiply and divide.


What are the 4 fundamental operations on whole numbers?

add, subtract, multiply, divide


How can we determine what to do add subtract multiply or divide on word problem questions on whole numbers?

Word problems have key words, like sum, add, difference, subtract, product, multiply, quotient, divide.


What are compatable numbers?

Compatible Numbers are numbers that are close in value to the actual numbers and easy to add, subtract, multiply or divide mentally


How do you do the first in math skill set 4 game 2?

You have to make make 24 with the 3 numbers they gave you. Once you Add, Subtract, Multiply, or Divide, you click the answer of the problem's answer and you Add, Subtract, Multiply, and Divide by the number you have left.


If Add is to multiply as subtract is to?

Divide.


How ADD is to MULTIPLY as SUBTRACT is to?

Divide.


How can you get the answer 24 by only using the numbers 8833 you can use the main signs add subtract multiply and divide?

8x3


What can you do with integers?

you can add subtract multiply and divide them.


Do you divide multiply subtract or add in the question 18-4242?

-4224


What are the features of a program?

In general, Features or Specifications are means the functionality provided in a program. For example, if you have a program which you use as a calculator, the programs features shall be Add, Subtract, Multiply, Divide and so on.


What does Leibniz's Calculator do?

it can multiply,divide,add and subtract.


Is average subtract add multiply or divide?

To average two numbers you add them and divide by two; for three numbers you add and divide by three; and so on. For example, the average of 5, 10, and 24 would be 39/3 or 13.


What are synonyms of divide add subtract multiply?

... its of= X Each= divide


How do you addsubtractmultiply and divide written in scientific notation?

First you have to set it to the same power of 10. Then it can easily be added or subtracted. To multiply, you just multiply the given values and add the exponent. To divide, you divide the numbers and subtract the exponent.


What are the 4 operations of math?

Add, subtract, multiply, divide.


Add subtract multiply and divide all represent what?

operations


What are the four operations on integers?

add, subtract, multiply, divide


What are the laws of sign numbers?

first,addition;add all,subtraction;subtract all;multiplication;multiply all,division;divide all


What is the definition of divide?

to divide numbers which is the opposite of multiply


What is the difference between cross and across?

When you add or subtract fractions you cross multiply and when you multiply or divide fractions you across multiply.


What type of math do bankers use?

subtract divide multiply addition