- 博客(1)
- 收藏
- 关注
原创 C语言判断质数,回文数,勾股数,水仙花数
判断质数:int judgement(int n){ int i; for(i=2;i<=n/2;i++){ if(n%i==0) return 0; } return 1; }//1为质数,0为合数。判断回文数:int judgement(int n){ int copy=n; int temp=0; while(copy){ temp=temp*10+(cop
2022-01-16 14:54:19 588 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人