Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

print star

#Bash Shell Script to print half pyramid using *
rows=4
for((i=1; i<=rows; i++))
do
  for((j=1; j<=i; j++))
  do
    echo -n "* "
  done
  echo
done
Source by www.tutorialsandyou.com #
 
PREVIOUS NEXT
Tagged: #print #star
ADD COMMENT
Topic
Name
1+3 =