How To Print Equilateral Triangle In Shell Programming?

1

1 Answers

Baljinder Kaur Profile
Baljinder Kaur answered
For((I=1;I<=5;I++))
do
  for((j=5;j>I;j--))
   do
  echo -n " "
   done
   for((k=1;k<2*I;k++))
    do
  echo -n "*"
     done
     echo " "
done

Answer Question

Anonymous