while(count<strlen(a))
{
for(int j=0;j<(strlen(a)-1);++j)
{
if(a[j]>a[j+1])
{
ho=a[j];
a[j]=a[j+1];
a[j+1]=ho;
}
}
count++;
}
{
for(int j=0;j<(strlen(a)-1);++j)
{
if(a[j]>a[j+1])
{
ho=a[j];
a[j]=a[j+1];
a[j+1]=ho;
}
}
count++;
}
The last person to post wins !
|
« Next Oldest | Next Newest »
|