#include<stdio.h> int fun() { const float PK=3.1415; float s; float r; printf("半径:\n"); scanf("%f",&r); s=PK*r*r; printf("面积%.2f\n",s); return 0; } int main() { fun(); return 0; }