All Data For Free
Pages
Home
Watch Full WWE Episodes of Raw and Smackdown
Contact Us
Copyright Policy
Sunday, 27 November 2011
C Program For Find Max Value In Array
#include<stdio.h>
#include<conio.h>
void main()
{
int a[5],i,m=0;
clrscr();
for(i=0;i<5;i++)
{
scanf("%d" &a[i]);
}
for(i=0;i<5;i++)
{
if(a[i]>m)
m=a[i]
}
printf("max=%d",m);
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment