运维网's Archiver
论坛
›
Shell/Powershell
› shell && array
buser
发表于 2018-8-21 11:19:04
shell && array
#!/bin/sh
echo "enter the number upto which you want to print table:"
read n
i=1
while [ $i -ne 10 ]
do
i=$(expr $i + 1)
table=$(expr $i \* $n)
echo "$table"
done
页:
[1]
查看完整版本:
shell && array