Question: Write it in C programming ! Declare two integer variables (a-4; b-5: and a variable of type float called average. Compute the average so that
Declare two integer variables (a-4; b-5: and a variable of type float called average. Compute the average so that the computer does an integer division. Then, recompute the average in two ways so that the computer does a floating-point division. The output is shown below. Integer division result: 4.000000 Floating-point division result: 4.500000 Floating-point division result: 4.500000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
