[root@Greendays lianshou]# cat l
#!/bin/bash
x=0
while [ "$x" -lt 10 ] ;
do
y="$x"
while [ "$y" -ge 0 ] ;
do
echo -n "$y"
y=`echo "$y - 1" | bc`
done
echo
x=`echo "$x + 1" | bc`
done
[root@Greendays lianshou]# ./l
0
10
210
3210
43210
543210
6543210
76543210
876543210
9876543210
[root@Greendays lianshou]#
阅读(477) | 评论(0) | 转发(0) |