Finding Average Of N Numbers In C Programming Tamil


#include<stdio.h>
#include<conio.h>
void main()
{
   int n,i,a[100],b=0;
   float avg;
   clrscr();
   printf("\n           www.tutorjoes.com\n\n");
   printf("\nEnter the Limit : ");
   scanf("%d",&n);
   printf("\nEnter the value :");
   for(i=0;i<n;i++)
      scanf("%d",&a[i]);
   for(i=0;i<n;i++)
   {
	b=b+a[i];
   }
   avg=b/n;
   printf("\nAverage :  %f",avg);
   getch();
}

Login To Download Source Code

Leave a Comment:

Login To Comment

List Of Programs


Goto Examples

Operators

Looping

Number Conversion

Pattern Design

Arrays

Matrix Examples

Sorting Examples

String Function

Change Case

String In C

Maths Functions

User Defined Functions

Recursive Functions

Pointer

Structure

File Concept

Calender Programming