Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C language Declare two integer variables (int a=7,b10 ) and a float variable (float average). Compote the average of a and b and store the

C language
image text in transcribed
Declare two integer variables (int a=7,b10 ) and a float variable (float average). Compote 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 realt in a floating-point division. Produce an cutput like the one shown below. Integer diviaion rosulti li,000000 Foating-potht diviaton result ith H.500000 Floating-point divialon reault 12t 8.500000

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

More Books

Students also viewed these Databases questions

Question

Do we value our line staff? How? P987

Answered: 1 week ago

Question

=+f) Let P(A) = I (wo) for A Fo, and assume (wg) E o($).

Answered: 1 week ago