用shell脚本打印九九乘法表
写一个shell脚本,打印打印九九乘法表,脚本如下:
1 2 3 4 5 6 7 8 9 |
#!/bin/bash for ((j=1;j<=9;j++)) do for ((i=1;i<=j;i++)) do echo -e -n "${i}X${j}=$[${i}*${j}]\t" done echo done |
~微信打赏~ 赏
写一个shell脚本,打印打印九九乘法表,脚本如下:
1 2 3 4 5 6 7 8 9 |
#!/bin/bash for ((j=1;j<=9;j++)) do for ((i=1;i<=j;i++)) do echo -e -n "${i}X${j}=$[${i}*${j}]\t" done echo done |
~微信打赏~ 赏