1 //输出长方形的 长 宽 高   和 面积
 2 
 3 #include <stdio.h>
 4 int main ()
 5 {
 6      float high = 1.23f;
 7      float width = 4.23f;
 8      float lengh = 5.56f;
 9 
10      float ice = high*width*lengh;
11      printf("长方形的高为:%.3f\n宽为:%.2f\n%.2f:是长方形的长\n",high,width,lengh);
12      printf("面积为:%.2f\n",ice);
13      return  0 ;
14 }

 

版权声明:本文为Bytezero原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/Bytezero/p/15069986.html