用C语言计算圆的面积~!!!!!!!

#include <stdio.h>
void main()
{
 int a,b,c,y,g,f;
 printf("圆柱底面的半径,圆柱的高");
 scanf("%d %d",&a,&b);
    c=2*3.14*a;
 y=3.14*a*a;
 g=c*b;
 f=2*y+g;
    printf("圆柱底面的周长为%d",c);
 printf("圆柱底面的面积为%d",y);
 printf("圆柱的侧面面积为%d",g);
 printf("圆柱的面积为%d",f);

}

原文地址:https://www.cnblogs.com/2041388565m/p/4085726.html