Program to find largest number in an array in c
#include"stdio.h"
main()
{
int a[]={15,67,25,90,40};
int k;
k=large_number(a);
printf("%d ",k);
}
int large_number(int a[5])
{
int i,big;
big=a[0];
for(i=1;i<5 p="">{
if(big=a[i])
}
return big;
}5>
main()
{
int a[]={15,67,25,90,40};
int k;
k=large_number(a);
printf("%d ",k);
}
int large_number(int a[5])
{
int i,big;
big=a[0];
for(i=1;i<5 p="">{
if(big=a[i])
}
return big;
}5>
No comments
Post a Comment