Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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.500000Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started