Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo "Pyramid 5"
- echo -n "Enter Num Of Pyramid : "
- read n
- m=1
- 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 " $m"
- done
- m=`expr $m + 1`
- echo " "
- done
Add Comment
Please, Sign In to add comment