Write a Shell Script to print the pyramid structure for the given number
echo "Enter size of pyramid :"
read n
i=0
for((k=1; k<=n; k++))
do
# This loop print spaces
for((a=i; a<=n; a++))
do
printf " ";
done
# This loop print the left side of the pyramid
for((j=1; j<=k; j++))
do
printf "*";
done
# This loop print right side of the pryamid.
for((i=1; i<k; i++))
do
done
printf "*";
# New line
echo;
done