-
-
Save rxw1/df2fa76310737728c29e3b5be678bc74 to your computer and use it in GitHub Desktop.
number pyramid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
n=( | |
" 1 * 8 + 1" | |
" 12 * 8 + 2" | |
" 123 * 8 + 3" | |
" 1234 * 8 + 4" | |
" 12345 * 8 + 5" | |
" 123456 * 8 + 6" | |
" 1234567 * 8 + 7" | |
" 12345678 * 8 + 8" | |
"123456789 * 8 + 9" | |
) | |
for i in $n; do | |
echo $i = $(($i)) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment