正在加载图片...
函数示例2 include <stdio. h> float rectangle area(float length, float width) int maino float length width printf("请输入矩形的长与宽:"); scanf("%f, %f, &length, &width) printf("rectangle area=%10. 3fn", rectangle _ area(length, width) return o float rectangle area(float length, float width) float s=length*width return s函数示例2 #include <stdio.h> float rectangle_area(float length,float width); int main() { float length,width; printf("请输入矩形的长与宽:"); scanf("%f,%f",&length,&width); printf("rectangle area=%10.3f\n",rectangle_area(length,width)); return 0; } float rectangle_area(float length,float width) { float s; s=length*width; return s; }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有