标签:style blog color os io 问题 div amp
a+b problem
#include<stdio.h> int main() { int a,b; scanf("%d %d",&a,&b);//读入int整形变量a和b,不可缺少& printf("%d",a+b); return 0; }
计算圆柱体面积:
#include<stdio.h> #include<math.h> int main() { const double pi=acos(-1.0); double r,h,s1,s2,s; scanf("%lf %lf",&r,&h); s1=pi*r*r; s2=2*pi*r*h; s=s1*2+s2; printf("%.3lf",s); return 0; }
a+b问题与圆柱体表面积的计算,布布扣,bubuko.com
标签:style blog color os io 问题 div amp
原文地址:http://www.cnblogs.com/z52527/p/3883910.html