摘要:
``` #include using namespace std; /*求解完数,数字的因数等于该数字,2-20000*/ int main() { int num = 0; for(int i =2;i<=20000;i++){ int x = i,sum=0; for(int j=1;j<x;j 阅读全文
posted @ 2023-08-23 19:49
TCcjx
阅读(17)
评论(0)
推荐(0)
摘要:
``` #include #include using namespace std; int main() { int num = 0,count=0,sum = 0; cin >> num; int x = num; while(x!=0){ x=x/10; count++; } x= num; 阅读全文
posted @ 2023-08-23 19:40
TCcjx
阅读(29)
评论(0)
推荐(0)
摘要:
``` #include #include using namespace std; /*判断素数*/ int isprime(int number) { if(number> number; if(isprime(number)){ cout << "the number is prime"<< 阅读全文
posted @ 2023-08-23 19:33
TCcjx
阅读(10)
评论(0)
推荐(0)

浙公网安备 33010602011771号