摘要: 1 #include<stdio.h> 2 3 int pow(int m, int n); 4 int main(void) 5 { 6 int n; 7 int temp; //n的绝对值 8 int count; //数的位数 9 int x; //临时变量 10 11 count = 0; 阅读全文
posted @ 2019-11-25 14:27 jason2018 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 3 int main(void) 4 { 5 int n, m; 6 int i; 7 int isPrime; 8 int sum; 9 int count; 10 11 i = 2; //第一个素数 12 sum = 0; 13 count = 0; 阅读全文
posted @ 2019-11-25 13:05 jason2018 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 #include<math.h> 3 4 int main(void) 5 { 6 int n; 7 int temp; //个位数 8 int flag; //奇偶标志位,1是奇数,0是偶数 9 int count; //统计数的位数 10 int re 阅读全文
posted @ 2019-11-25 12:27 jason2018 阅读(214) 评论(0) 推荐(0) 编辑