Move Hundreds to End
void moveHundreds(int array[],int size)
{
int temp[size],count=0;
for(int i=0;i<size;i++)
{
if(array[i]!=100)
{
temp[count]=array[i];
count++;
}
}
for(int i=0;i<count;i++)
{
array[i]=temp[i];
}
while(count<size)
{
array[count]=100;
count++;
}
}
0 Comments