#include <stdio.h>
#include <stdlib.h>
int main()
{
int x, i, j, space;
scanf("Enter an odd number:%d", &x
); space = x-1;
for ( j = 1 ; j <= x ; j++ )
{
for ( i = 1 ; i <= space ; i++ )
space--;
for ( i = 1 ; i <= j ; i++ )
for ( i-=2 ; i >=1 ; i-- )
}
space = 1;
for ( j=1 ; j <= x-1 ; j++ )
{
for ( i = 1 ; i <= space; i++ )
space++;
for ( i = 1 ; i <= x-j ; i++ )
for ( i-=2 ; i >=1 ; i-- )
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBtYWluKCkKewogICAgaW50IHgsIGksIGosIHNwYWNlOwoKICAgIHNjYW5mKCJFbnRlciBhbiBvZGQgbnVtYmVyOiVkIiwgJngpOwogICAgc3BhY2UgPSB4LTE7CgogICAgZm9yICggaiA9IDEgOyBqIDw9IHggOyBqKysgKQogICAgewoJCWZvciAoIGkgPSAxIDsgaSA8PSBzcGFjZSA7IGkrKyApCiAgICAgICAgICAgIHByaW50ZigiICAiKTsKCQlzcGFjZS0tOwoJCWZvciAoIGkgPSAxIDsgaSA8PSBqIDsgaSsrICkKICAgICAgICAgICAgcHJpbnRmKCIlMmQiLCBpKTsKICAgICAgICBmb3IgKCBpLT0yIDsgaSA+PTEgOyBpLS0gKQogICAgICAgICAgICBwcmludGYoIiUyZCIsIGkpOwoJCXByaW50ZigiXG4iKTsKCX0KCglzcGFjZSA9IDE7Cglmb3IgKCBqPTEgIDsgaiA8PSB4LTEgOyBqKysgKQogICAgewoJCWZvciAoIGkgPSAxIDsgaSA8PSBzcGFjZTsgaSsrICkKCQkJcHJpbnRmKCIgICIpOwoJCXNwYWNlKys7CgkJZm9yICggaSA9IDEgOyBpIDw9IHgtaiA7IGkrKyApCiAgICAgICAgICAgIHByaW50ZigiJTJkIiwgaSk7CiAgICAgICAgZm9yICggaS09MiA7IGkgPj0xIDsgaS0tICkKICAgICAgICAgICAgcHJpbnRmKCIlMmQiLCBpKTsKCQlwcmludGYoIlxuIik7CiAgICB9CgoKICAgIHJldHVybiAwOwp9