Question: Write a function called average1 that takes two integers as parameters and prints their average. Write another function called average2 that takes two integers as

Write a function called average1 that takes two integers as parameters and prints their average. Write another function called average2 that takes two integers as parameters and returns their average. The first function doesnt return anything (void) since it prints the result. Write both functions in the same C program and call both of them from main.

Write a function called average1 that takes two integers as parameters and

PLZ write it in C not c++

Write a function called averagel that takes two integers as parameters and prints their average. Write another function called average2 that takes two integers as parameters and returns their average. The first function doesn't return anything (void) since it prints the result. Write both functions in the same C program and call both of them from main. void average I (int, int); float averagel (int, int); Below is a sample output. The output should designate where we're printing from 3 Enter integer: 4 Enter integer: 9 Printing from function averagel: 6.500000 Printing from main: 6.500000

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!