Write Program on arithmetic operations.
Answers
Answered by
2
Answer:
Arithmetic Operators in C
C Arithmetic Operators Operation Example
– Subtraction 10 – 2 = 8
* Multiplication 10 * 2 = 20
/ Division 10 / 2 = 5
% Modulus – It returns the remainder after the division 10 % 2 = 0 (Here remainder is zero). If it is 10 % 3 then it will be 1.
Explanation:
mark me as brainlist please
Answered by
1
Answer:
In statement div = (float) num1 / num2; , I have typecasted num1 to float before the divide operation, to avoid integer division. Read more - Type conversion in C programming. Note: \n is an escape sequence character used to print new lines (move to the next line).
Similar questions