#include<stdio.h>
#include<conio.h>
void main()
{
int max,mark[10],a;
clrscr();
for(a=0;a<10;a++)
{
printf("Enter Element : ");
scanf("%d",&mark[a]);
}
max = mark[0];
for(a=0;a<10;a++)
{
if(mark[a] > max)
max = mark[a];
}
printf("\n%d is largest Value of Array ",max);
getch();
}
INPUT
Enter Element : 23
Enter Element : 24563
Enter Element : 223
Enter Element : 223
Enter Element : 2343
Enter Element : 243
Enter Element : 323
Enter Element : 2223
Enter Element : 233
Enter Element : 230
OUTPUT
24563 is largest Value of Array
Copyright ©
All Notes on BCA