刚考了计算机二级c有个填空题脑子一时短路写错了(>﹏<) 

遂写下来勉励自己,/(ㄒoㄒ)/~~

1 #include<cstdio>
2 int fun(int n, int m){
3     return n == m ? 1 : n % m == 0 || 1 == n ? 0 : fun(n, m + 1);
4 }
5 int main(){
6     return 0;
7 }

View Code

By: GadyPu 博客地址:http://www.cnblogs.com/GadyPu/ 转载请说明