[(己解决)求助]请问这个程序哪里出问题了??我怎么也找不出来!急死我了!!
/* *Author: John Doe
Date Created: 21st January 2004
Description: The ollowing code is used to find the Area
and Circumference of a circle.* */
#define PI 3.14
void main()
{
int radius;
float area, circum, diameter;
prinf("Enter the radius of Circle: ");
scanf("%d",&radius);
printf("\n");
area = PI * radius * radius;
diameter = 2 * radius;
circum = PI * diameter;
printf("The Area of Circle is: %1.2f\n",area);
printf("The Circumference of Circle is: %1.2f\n",circum);
}
[此贴子已经被作者于2006-2-12 16:30:37编辑过]
----------------解决方案--------------------------------------------------------
这一句错了
prinf("Enter the radius of Circle: ");
prinf应改为printf
----------------解决方案--------------------------------------------------------
天!!!
太谢谢你了!看来我的观察能力还是太差了。。。。
----------------解决方案--------------------------------------------------------
晕,难道编译不出来
----------------解决方案--------------------------------------------------------
呵呵,我也犯过这样的错
----------------解决方案--------------------------------------------------------