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