answersLogoWhite

0

#include

void mean(int[],int);

void main()

{

int n,a[24];

printf("Enter the number of terms to find mean\n");

scanf("%d",&n);

printf("Enter the numbers\n");

for(i=0;i

scanf("%d",&a[i]);

mean(a,n);

}

void mean(int a[24],int n)

{

int sum=0,mean;

for(i=0;i

sum+=a[i];

mean=sum/n;

printf("The mean of given values is %d",mean);

}

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

C program weighted arithmetic mean using c program?

double weightedmean (double runningaverage, double rawdata, double timeconstant) { return runningaverage / (1 - 1/timeconstant) + rawdata / (1/timeconstant); }


Application of arithmetic progression in design?

Arithmetic is important in design. This is true whether you are making a program for designs or you are trying to create a design.


How do you spell caulutar?

The closest word is "calculator" (arithmetic computing device or program).


How do you code the program using arithmetic exceptions?

Never.A program should handle exceptions, but should NEVER USE exceptions to control program flow.


What is an arithmetic operator in c program?

An arithmetic operator is any of the "atomic" operators to do the following math operations: + addition - subtraction / division * multiplication % modulus division


Different parts of c language program?

what are the parts of C language program


C program to implement arithmetic assignment operator?

y=2x2+3x+1


An example of a PASCAL program to find the average of a set of numbers?

how to get the arithmetic average on pascal


What is a program written in high level language called?

the program written in high level language is called "source program"


What is the MIPS formula used to calculate a provider's performance score in the Quality Payment Program?

The MIPS formula used to calculate a provider's performance score in the Quality Payment Program is based on four performance categories: Quality, Promoting Interoperability, Improvement Activities, and Cost. Each category is weighted differently to determine the overall score.


Which program translate assembly language into machine language?

Assembly langue is translated into machine language by an assembler.


A source program is the program written in English language?

No.