c语言:输入三个实数a,b,c,若能构成三角形,则输出三角形的面积!_百度知 ...答:if(a+b<=c) 语句的地方,return后面多了一个 } include <stdio.h> include<math.h> void main(){double a,b,c,p,area;printf("请输入三角形的三条边a,b,c:");scanf("%f%f%f",&a,&b,&c);if(c<b){p=c;c=b;b=p;} if(c<a){p=a;a=c;c=p;} if(b<a){p=b;b=a...
计算机国二c语言,考试内容是什么?有哪些知识点?说详细点!答:{ int a=l, b=0;printf ("%d,", b=a+b);printf ("%d\n", a=2*b);}程序运行后的输出结果是( )。A)0,0 B)1,0 C)3,2 D)1,2(17)设有定义:int a=l, b=2, c=3;,以下语句中执行效果与其它三个不同的是( )。A)if(a>b)c=a,a=b,b=c; B)if(a>b){c=a,a=b,b=c;}...
简单C语言,求高手帮忙,在线等,谢谢.答:a=A[rand()%6];b=B[rand()%6];if(a+b > 7){ printf("(%d,%d) -- A\n",a,b);fputc('A',fp);} else if(a+b == 7){ printf("(%d,%d) -- B\n",a,b);fputc('B',fp);} else { printf("(%d,%d) -- C\n",a,b);fputc('C',fp);} } getc...