#include<stdio.h>
#define PI 3.14159
int main(void){
double radius;
double area;
printf("請輸入圓的半徑\n"); //← See? this point!!"未斷行",還有"//"是單行注記,如果你是學生的話...
scanf("%lf",&radius); //這裡就錯了//←這邊我會扣五分..※畢竟初學不學好,之後壞習慣會很難改...
area=PI*radius*radius;
printf("圓的面積是 %f \n",area);
scanf("%f",&radius);
return(0);
}
|