用shell脚本写了个9x9乘法表,仅供参考!下有文本...
#!/bin/bash
#Author:victor Email:291131893@qq.com Date:2016-09-17
#Release 1.0
#Function:9x9 multiplication table
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:~/bin
export PATH
function multiplication (){
for I in `seq 1 9`;do
for J in {1..9};do
[[ ${I} -ge ${J} ]] && echo -n "${J}x${I} = $((${I}*${J})) "
done
echo
done
}
multiplication
本文出自 “linux相关技术” 博客,谢绝转载!
原文地址:http://wangergui.blog.51cto.com/8504247/1853387