Question: C language , no C++ Declare two integer variables (int a=7,b=10; ) and a float variable (float average;). Compute the average of a and b

C language , no C++
 C language , no C++ Declare two integer variables (int a=7,b=10;

Declare two integer variables (int a=7,b=10; ) and a float variable (float average;). Compute the average of a and b and store the result in average. Do this in three different ways: one way that results in an integer division and two other ways that result in a floating-point division. Produce an output like the one shown below

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!