皮皮学,免费搜题
登录
搜题
【单选题】
从键盘输入三角形的三边长为 a , b , c ,按下面公式计算并输出三角形的面积。 程序代码如下,但程序运行后输出结果不正确,请找出 有问题 的语句。 #include #include int main() { float a, b, c; float s, area; printf("Input a,b,c:"); scanf("%f,%f,%f",&a,&b,&c); // 第1处 if (a+b>c && b+c>a && a+c>b) // 第2处 { s = 1/2 * (a + b + c); // 第3处 area = sqrt(s * (s - a) * (s - b) * (s - c)); // 第4处 printf("area=%.2f\n", area); } else { printf("It is not a triangle\n"); } return 0; }
A.
第1处
B.
第2处
C.
第3处
D.
第4处
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【简答题】投影是在自然现象 的基础上经过科学抽象而得到的。
【单选题】现象之间的相互关系可以归纳为两种类型,即(    )。
A.
相关关系和函数关系    
B.
相关关系和因果关系
C.
相关关系和随机关系    
D.
函数关系和因果关系
【单选题】What can researchers do with the garbage on the moon?
A.
Record details of space exploration.
B.
Monitor the change of lunar weather.
C.
Study the effect of radiation and vacuum on its materials.
D.
Explore the possibility of human settlement on the moon.
【单选题】What do people generally believe about aging?
A.
It should cause no alarm whatsoever.
B.
They just cannot do anything about it.
C.
It should be regarded as a kind of disease.
D.
They can delay it with advances in science.
【多选题】普通II类胶合板即耐水胶合板,适用条件有()。
A.
潮湿条件下使用
B.
室外条件下使用
C.
能通过煮沸试验
D.
能通过63°C土3°C热水浸渍
E.
干燥条件下使用'治
【单选题】BIM在投标过程中的应用不包括()
A.
于BIM的深化设计
B.
于BIM的施工方案模拟
C.
于BIM的4D施工模拟
D.
于BIM的资金优化
【多选题】普通II类胶合板即耐水胶合板,适用条件有( )。
A.
潮湿条件下使用
B.
室外条件下使用
C.
能通过煮沸试验
D.
能通过63℃±3℃热水浸渍试验
E.
干燥条件下使用
【判断题】引言中引用的文献不用在文后“参考文献”中标明出处。
A.
正确
B.
错误
【单选题】What is the comment made in the passage on Futurist poetry?
A.
Too emotional.
B.
Too new in type to be acceptable.
C.
Not literature as he knows it.
D.
Essential to basic change in the nature mankind.
【单选题】What do we learn about the road test?
A.
The license office provides the test vehicle.
B.
The examiner shows how to start, stop or park.
C.
The examiner watches you driving in your car.
D.
The test is carried out where there is little traffic.
相关题目: