Arrays In C Programming Tamil


//arrays
#include<stdio.h>
#include<conio.h>
void main()
{
	int i,avg,sum=0;
	int marks[100];	//array variable declaration
	clrscr();
	for(i=1;i<=5;i++)
	{
		printf("\n Enter the marks :");
		scanf("%d",&marks[i]);
	}
	for(i=1;i<=5;i++)
	{
		sum=sum+marks[i];  // www.tutorjoes.com
	}
	avg=sum/5;	// calculating average
	printf("\n Average :%d",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