C语言作业,编程题 帮帮孩子吧答:第1题:include <stdio.h>#include <math.h>double s1,s2,s3;void fun(double a,double b){s1=pow(a+b,2);s2=pow(a+b,3);s3=pow(a+b,1.0/2);}void main(){ double a,b;scanf("%lf%lf",&a,&b);fun(a,b);printf("%lf\n%lf\n%lf",s1,s2,s3);}//运行示例:第2...
提问一道c语言的编程题,求答案答:int length;int width;int height;}Cuboid,*cuboid;int main(){ Cuboid b={15,10,5};cuboid p = &b;printf("长方体的长宽高分别为(通过结构体变量输出):%d,%d,%d\n",b.length,b.width,b.height);printf("长方体的长宽高分别为(通过指针输出):%d,%d,%d\n",p->length,p->width,...