題目一:簡單輸出
include<stdio.h>;
main ()
{
printf("王達(dá)進(jìn)\n");
return 0;
}
題目二:計(jì)算圓的面積
include<stdio.h>
define PI 3.14
double calculateArea (int radius);
int main ()
{
int cRadius=0
double Area=0.0
printf("請輸入圓的半徑:\n");
scanf("%d",&cRadius);
Area=calculateArea(cRadius);
printf("圓的面積是:%f\n",Area);
return 0;
}
double calculateArea (int radius);
{
double result=PIradiusradius;
return result;
}