#include<stdio.h>
#include<stdlib.h>
struct circle{
int x,y;
double radius;
};
int main(){
struct circle{
int x,y;
double radius;
};
double area;
struct circle c1={10,10,2.5};
area=c1.radius*c1.radius*3.14159;
printf("此圓的圓心為(%d, %d), 面積為%.2f\n",c1.x,c1.y,area);
system("pause");
return 0;
}
沒有留言:
張貼留言