首页 > 系统服务 > 详细

Linux-shell脚本99乘法表

时间:2021-04-10 01:07:37      阅读:23      评论:0      收藏:0      [点我收藏+]

脚本文件写法

#!/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

写完执行效果

技术分享图片

 

Linux-shell脚本99乘法表

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!