
3

for循环-99乘法表
source link: https://blog.51cto.com/gavenlee/5751107
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

for循环-99乘法表
精选 原创制作99乘法表
#!/bin/bash
for i in {1..9}; do
for j in `seq $i`;do
echo -e "$i*$j=$[$i*$j]\t\c" #\t插入tab键,\c不插入换行符
done
echo
done
for i in {1..9}; do
for j in `seq $i`;do
echo -e "$i*$j=$[$i*$j]\t\c" #\t插入tab键,\c不插入换行符
done
echo
done

- 赞
- 收藏
- 评论
- 分享
- 举报
</div
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK