Average of the Entered Numbers

/* Write a program to find the Average of the Entered Numbers */

#include<stdio.h>
#include<conio.h>
void main()
{
int lt;
float n,sum=0,avg;
clrscr();
printf("\n How many number you want to enter ");
scanf("%f",&lt);
for(i=1;i<=lt;i++)
{
printf("Enter %d number",i);
scanf("%d",&n);
sum =sum + n;
}
avg =sum / lt ;
printf("\n The Average is =%f",avg);
getch();

}

Who's online

We have 34 guests and no members online

About Us

Harsimran Singh

Hello

This website is a special gift for Programming Lovers , which want to learn basic Programming Languages and want to develop there skills Read More....

Our work

Find Us

This email address is being protected from spambots. You need JavaScript enabled to view it.

Harsimran Singh(Facebook)

Harsimran Singh(about.me)

Harsimran Singh(G+)