Virajsinh

Pyramid_1_OS_Script

Oct 7th, 2017
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. echo "Pyramid 1"
  2. echo -n "Enter Num Of Pyramid : "
  3. read n
  4.  
  5. for (( i=1; i<=$n; i++ ))
  6. do
  7. for(( j=1; j<=$i; j++ ))
  8. do
  9. echo -n " *"
  10. done
  11. echo " "
  12. done
Add Comment
Please, Sign In to add comment