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