#include<stdio.h> int main() { float r,h,pi; pi=3.1415926; scanf("%f %f",&r,&h); printf("Area=""%.3f",2*pi*r*r+2*pi*r*h); return 0; }
原文地址:https://www.cnblogs.com/chenlong991223/p/9720035.html
时间: 2024-10-25 21:54:49
#include<stdio.h> int main() { float r,h,pi; pi=3.1415926; scanf("%f %f",&r,&h); printf("Area=""%.3f",2*pi*r*r+2*pi*r*h); return 0; }
原文地址:https://www.cnblogs.com/chenlong991223/p/9720035.html