Write a Program to input two numbers and apply all the arithmetic operators on it.
Answers
Answered by
0
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).
Answered by
0
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