运维网's Archiver
论坛
›
Shell/Powershell
› shell 打印顺倒三角
hongmeigui22027
发表于 2018-8-30 07:46:28
shell 打印顺倒三角
顺三角
#!/bin/bash
read -p "Please input the line number:" line
for ((i=1; i0; j--))
do
echo -n " "
done
for ((h=1; h0; h--))
do
echo -n "*"
done
echo
done
页:
[1]
查看完整版本:
shell 打印顺倒三角