Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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

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

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago