Computer Science, asked by poojabera9876, 5 months ago

program for getting the divison​

Answers

Answered by shobhabidlan01
1

Answer:

Division in C

In C language, when we divide two integers, we get an integer result, e.g., 5/2 evaluates to 2. As a general rule integer/integer = integer, float/integer = float and integer/float = float. So we convert denominator to float in our program, you may also write float in the numerator.

Answered by BRAINhunter2020
1

In C language, when we divide two integers, we get an integer result, e.g., 5/2 evaluates to 2. As a general rule integer/integer = integer, float/integer = float and integer/float = float. So we convert denominator to float in our program, you may also write float in the numerator.

Hope it helps ☺️

Similar questions