#include<stdio.h>
#include<conio.h>
void main()
{
int a[10],i,max=32768;
printf("Enter 10 Values");
for(i=0;i<=9;i++)
{
scanf("%d",&a[i]);
}
max=a[0];
for(i=0;i<10;i++)
{
if(max<a[i])
{
max=a[i];
}
}
printf("Maximum Value is %d",max);
getch();
}
Copyright © 2010 C Programs
Icons & Wordpress Theme by N.Design | Blogger Templates by Blog and Web
0 comments: (+add yours?)
Post a Comment