题解 | #输出 0 到 500 中 7 的倍数#
输出 0 到 500 中 7 的倍数
https://www.nowcoder.com/practice/8b85768394304511b0eb887244e51872
#!/bin/bash int=0 while (($int<=500)) do if (($int%7==0)) then echo $int fi let "int++" done
输出 0 到 500 中 7 的倍数
https://www.nowcoder.com/practice/8b85768394304511b0eb887244e51872
#!/bin/bash int=0 while (($int<=500)) do if (($int%7==0)) then echo $int fi let "int++" done
相关推荐