- 博客(7)
- 收藏
- 关注
原创 数的整除
题目要求: 代码: #include <stdio.h> #include <stdlib.h> int main() { int x[5]; int y=0; for(y=0;y<5;y++) scanf("%d",&x[y]); for(y=0;y<5;y++) { if(x[y]%...
2018-08-28 23:37:02
316
2
原创 求数的位数
题目要求: 代码 : int main() { int a,b; b=0; scanf("%d",&a); while(a){b++;a/=10;} printf("%d\n",b); return 0; } 输出结果:
2018-08-27 23:03:35
890
原创 整数
题目要求: 代码: #include <stdio.h> #include <stdlib.h> int main() { int x; scanf("%d",&x); printf("%d\n",x/100); printf("%d\n",x%10); return 0; } 输出结果: ...
2018-08-24 21:40:20
234
原创 摄氏度
题目要求: 代码: #include <stdio.h> int main() { float s; scanf("%f",&s); printf("%.2lf\n",5/9.0*(s-32)); return 0; } 输出结果:
2018-08-24 21:19:58
530
原创 圆的面积
题目要求: 代码: #include <stdio.h> #define PI 3.14159 //定义PI的值 int main() { float r; scanf("%f",&r); printf("%.2lf\n",PI*r*r); return 0; } 输出结果: ...
2018-08-24 20:18:48
1292
原创 加法运算
题目要求: 代码: #include <stdio.h> int main() { int x,y; scanf("%d,%d",&x,&y); printf("%d\n",x+y); return 0; } 输出结果:
2018-08-24 19:12:26
214
原创 C:\ABC.TXT
题目要求: 代码: #include <stdio.h> #include <stdlib.h> int main() { printf("C:\ABC.TXT"); return 0; } 运算结果:
2018-08-24 17:58:37
1223
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅