#include
#include
#include int shell_sort(int s[],int n)
{
int i,j,temp,d;
float a,b;
//int p;
b=n;
a=b/2;
//printf("%f\n",a);
for(d=ceil(a);
d>=1;
d=ceil(a))//d is the increasing range
{
for(i=d;
is[j])
{
s[j-d]=s[j];
j=j+d;
}
s[j-d]=temp;
a=(d)/2;
/*for(p=0;
p