Write a program to enter two integers and perform all arithmetic operations on them.
Answers
Answered by
13
Answer:
Program to perform all arithmetic operations. 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
CBSE BOARD XII,
5 months ago
Math,
5 months ago
English,
5 months ago
Computer Science,
10 months ago
English,
1 year ago