i=1
k=1
j=1
while [ $i -le 5 ]
do
let k=5-i
while [ $j -le $k ]
do
printf " "
let j=j+1
done
j=1
while [ $j -le $i ]
do
printf "* "
let j=j+1
done
printf "\n"
let i=i+1
let j=1
done
i=5
k=1
j=1
while [ $i -gt 0 ]
do
let k=5-i
while [ $j -le $k ]
do
printf " "
let j=j+1
done
j=1
while [ $j -le $i ]
do
printf "* "
let j=j+1
done
printf "\n"
let i=i-1
let j=1
done
k=1
j=1
while [ $i -le 5 ]
do
let k=5-i
while [ $j -le $k ]
do
printf " "
let j=j+1
done
j=1
while [ $j -le $i ]
do
printf "* "
let j=j+1
done
printf "\n"
let i=i+1
let j=1
done
i=5
k=1
j=1
while [ $i -gt 0 ]
do
let k=5-i
while [ $j -le $k ]
do
printf " "
let j=j+1
done
j=1
while [ $j -le $i ]
do
printf "* "
let j=j+1
done
printf "\n"
let i=i-1
let j=1
done