#define PI 3.1416/* 具名变量 圆的面积的程序*/
#include "stdio.h"
void main()
{
float a,b;
/*declare var a as the radius and var b as area*/
scanf("%f",&a);/*input the radius */
b=PI*a*a;/*calculate the area*/
printf("%f\n",b);/*print the result*/
sleep(3000);/*wait to have time to see the result*/
}
输入输出控制符要有引号