Linux-shell脚本99乘法表

时间:2021-04-10 01:07:37   收藏:0   阅读:29

脚本文件写法

#!/bin/bash
#
#-------------------------------------------
# Version: ? 1.0
# Date: 2021/4/8
# Author: wangxinggang
# Email: 455434332@qq.com
# Description: This is the first script
# License: GPL
# ------------------------------------------
for i in {1..9};do
for j in `seq $i`;do
let result=$[i*j]
echo -e "${j}x${i}=$result\t\c"
done
echo
done

写完执行效果

技术分享图片

 

原文:https://www.cnblogs.com/wxg29/p/14638313.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!