当前位置: 技术问答>linux和unix
一个Linux的程序题,很简单.一个填空题
来源: 互联网 发布时间:2016-01-26
本文导语: 实现这个图形: Number:4 **** *** ** * #!/bin/bash echo -n "Number:" read num let counter=num while [ $counter -gt 0 ] ;do counter2=0 while ---------------------- do echo -n "*" let counter2=counter2+1 done echo let counter=counter-1...
实现这个图形:
Number:4
****
***
**
*
#!/bin/bash
echo -n "Number:"
read num
let counter=num
while [ $counter -gt 0 ] ;do
counter2=0
while ---------------------- do
echo -n "*"
let counter2=counter2+1
done
echo
let counter=counter-1
done
在这个题目中---应该填写什么内容.请帮忙.先谢谢大家了.
Number:4
****
***
**
*
#!/bin/bash
echo -n "Number:"
read num
let counter=num
while [ $counter -gt 0 ] ;do
counter2=0
while ---------------------- do
echo -n "*"
let counter2=counter2+1
done
echo
let counter=counter-1
done
在这个题目中---应该填写什么内容.请帮忙.先谢谢大家了.
|
#!/bin/bash
echo -n "Number:"
read num
let counter=num
while [ $counter -gt 0 ] ;do
counter2=0
while [[ $counter2
echo -n "Number:"
read num
let counter=num
while [ $counter -gt 0 ] ;do
counter2=0
while [[ $counter2