#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-12-25 20:27:20
#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