#include<stdio.h> int main(void) { double R,S; printf("Enter R:"); scanf("%lf",&R); if(R>0){ S=R*3.14; printf("S=%.2f\n",S); } else{ printf("输入错误"); } return 0; }
#include<stdio.h> int main(void) { double R,S; printf("Enter R:"); scanf("%lf",&R); if(R>0){ S=R*3.14; printf("S=%.2f\n",S); } else{ printf("输入错误"); } return 0; }
转载于:https://www.cnblogs.com/jlg0322/p/3367638.html