題組內容
六、
⑴利用 C 程式的#define 功能,定義出計算某圓周長的函數如下: area(r)=πr2 ; (8 分)
詳解 (共 1 筆)
詳解
#define PI 3.14159
double area(double r) {
return 2 * PI * r;
}