WAP to enter any 10 number and find out minimum
Defination :: WAP to enter any 10 number and find out minimum
Source Code ::
void main()
{
int no[5],i,min;
clrscr();
printf("Enter Any 5 Value");
for(i=0;i<=4;i++)
{
scanf("%d",&no[i]);
}
min=no[0];
for(i=1;i<=4;i++)
{
if(no[i]<min)
{
min=no[i];
}
}
printf("\nMinimum Number Is%d ",min);
getch();
}
Source Code ::
void main()
{
int no[5],i,min;
clrscr();
printf("Enter Any 5 Value");
for(i=0;i<=4;i++)
{
scanf("%d",&no[i]);
}
min=no[0];
for(i=1;i<=4;i++)
{
if(no[i]<min)
{
min=no[i];
}
}
printf("\nMinimum Number Is%d ",min);
getch();
}
WAP to enter any 10 number and find out minimum
Reviewed by Unknown
on
21:42
Rating:
No comments: