#!/bin/bash
#打印一个正方形
if(($1>10 || $1 <2))
then
echo "your the number not in the range input again"
fi
len=$1;
for((i=1;i<=len;i++))
do
for((j=1;j<=len;j++))
do
if((i==1||i==len))
then if((j==1 ||j==len))
then echo -n "@"
else echo -n "+"
fi
else if((j==1||j==len))
then echo -n "&"
else echo -n " "
fi
fi
done
echo ""
done
#end
我的作业题
- greco
- 帖子: 2487
- 注册时间: 2007-04-06 10:24
- 来自: ~/Shanghai
Re: 我的作业题
这题使我想起了读书的时候 

http://silenceisdefeat.com/~greco
代码: 全选
''.join([chr(ord(c)-2) for c in 'O{"G/ockn"ku<"itgeq0ujkBiockn0eqo'])
echo -n "Z3JlY28uc2hpQGdtYWlsLmNvbQ==" | base64 -d
- jioyo源
- 帖子: 3476
- 注册时间: 2008-10-08 13:48
Re: 我的作业题

--------------------------------------
论坛精华贴全集:http://forum.ubuntu.org.cn/viewtopic.php?f=48&t=199845
book:http://forum.ubuntu.org.cn/viewtopic.php?f=21&t=198286
论坛精华贴全集:http://forum.ubuntu.org.cn/viewtopic.php?f=48&t=199845
book:http://forum.ubuntu.org.cn/viewtopic.php?f=21&t=198286