正在加载图片...
The C Programming language Chapter8 Functions Exp: X3 #include <stdio. h> a1.2 float cube(float x product 1.728 return(x*x*x) mal float a, product printf("please input value of a: " scanf(%of, &a) product=cube(a) printf("Cube of %.4f is %0.4fn", a, product)The C Programming Language Chapter 8 Functions Exp : x3 #include <stdio.h> float cube(float x) { return(x*x*x); } main() { float a, product; printf("Please input value of a:"); scanf("%f",&a); product=cube(a); printf(”Cube of %.4f is %.4f\n",a,product); } x a product ×× ×× 1.2 1.2 1.728
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有