Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

show the program while written in DEV C++ 1. Write down the output of the following C programs. a) #include float ayg (float, float); int

image text in transcribed

show the program while written in DEV C++

1. Write down the output of the following C programs. a) #include float ayg (float, float); int main() Low float yi, y2, average: y1=5.0: y2=7.0; average = avg (yi, y2); printf("y1 = $f y2=f The average is= $f", yi, y2, average); return 0; } float avg (float x1, float x2) float result; result = (x1+x2)/2; return result; }

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