main()
{
int l[30],I, j, t;
for(i=1 ;i<=10;i++)
{
printf(Enter a number\n”);
scanf(“%d,&l[l]);
}
for(i=1 <10;i++)
if( j=l+;j<=10;j++)
if(l[i]>l[j=1])
{
t=l[i];
l[i]=l[i];
l[j+1]=t;
}
printf(sorted list\n”);
for(i=1 ;i<=10;j++)
printf(“%d\n”,l[i]);
}
Posted by: Wasim Javed
No comments:
Post a Comment