Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo "Pyramid 2"
- echo -n "Enter Num Of Pyramid : "
- read n
- for (( i=1; i<=$n; i++ ))
- do
- for (( k=n; k>$i; k-- ))
- do
- echo -n " "
- done
- for (( j=1; j<=$i; j++ ))
- do
- echo -n " *"
- done
- echo " "
- done
Add Comment
Please, Sign In to add comment