void main()
{
int a[100],n,i,small,large;
clrscr();
printf("Enter the size of array");
scanf("%d",&n);
printf("Enetr the element of the array");
for(i=0;i
{
scanf("%d",&a[i]);
}
small=a[0];
large=a[o];
for(i=0;i
{
if(a[i]
{
small=a[i];
}
else
{
if(a[i]>large)
{
large=a[i];
}
}
}
No comments:
Post a Comment