解题思路:
思路很简单 pi * r * r 就这个公式
注意事项:
PI的值要定义为3.1415926, 如果定义为3.14则会报答案错误
参考代码:
#include <stdio.h> int main() { float pi = 3.1415926; float r; scanf("%f", &r); float result = pi * r * r; printf("%.2f\n",result); return 0; }
0.0分
2 人评分
用筛法求之N内的素数。 (C语言代码)浏览:1370 |
C语言程序设计教程(第三版)课后习题6.3 (C语言代码)浏览:991 |
WU-陶陶摘苹果2 (C++代码)浏览:1014 |
C语言程序设计教程(第三版)课后习题8.8 (C语言代码)浏览:670 |
C语言程序设计教程(第三版)课后习题9.10 (C语言代码)浏览:659 |
整数分类 oj上总是wrong answer浏览:684 |
C语言训练-求素数问题 (C语言代码)浏览:628 |
【亲和数】 (C语言代码)浏览:729 |
2005年春浙江省计算机等级考试二级C 编程题(3) (C语言描述—高大上之利用二维指针生成二维数组)浏览:1427 |
Manchester-字符串的输入输出处理浏览:12862 |