program to find basic arthematic operations?
Answers
Answer:
(15 * 3) + 12 = 57
15 * (3 + 12) = 225
Below are the operators used in C:
Operation Operator Info
Addition + x + y = z
Subtraction - z - y =x
Multiplication * x * y = z
Division / z / y = z
Modulus % x % y = 0
Increment ++ i++
Decrement -- j--
Answer:
Yes we are going to be doing math, now don't run away quite yet! When writing computer programs, you will find that you use a lot of arithmetic operations.
An important point is that computer programs follow the order of operations. That is, anything in parenthesis is evaluated first, then multiplication or division, and finally addition and subtraction. Consider the following:
(15 * 3) + 12 = 57
15 * (3 + 12) = 225
Below are the operators used in C:
Operation Operator Info
Addition + x + y = z
Subtraction - z - y =x
Multiplication * x * y = z
Division / z / y = z
Modulus % x % y = 0
Increment ++ i++
Decrement -- j--
.
.
.
.
.
.
.May above snap help you .
.
.
.
Must worth my work if it seems you helpful.
.