Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A c program that asks the user for a number, and then allow as the user to enter that number many times, one at a

image text in transcribed
A c program that asks the user for a number, and then allow as the user to enter that number many times, one at a time. The program then prints the average of all the numbers.
1.What is the return type ?
2. What parameters are used ?
3. Description of every function used
Thank you.
#include #include 3 #include 4 5 int main(int argc, char argv[]) 6E 7 8 int ar[100], x, sum-05 9 10 float avg5 12 printf("Enter the size of your array: ")5 13 scanf ("d", 8x)5 14 printf ("Enter the xd number(s): ",x)5 15 161 17 for (int i=e; i(X, i++) 18 scanf ("Xd",&ar[i])i 19 sum-sum ar[i]; 20 F 21 22 avg-(float) sum/xsl 23 | printf(" The average is %f",avg); 24 getch)5 25 26 L 27

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

Students also viewed these Databases questions

Question

explain what is meant by experiential learning

Answered: 1 week ago

Question

identify the main ways in which you learn

Answered: 1 week ago