以下程序用于判断a.b.c能否构成三角形,若能,输出YES,否则输出NO。当给a.b.c输入三角形三条边长时,确定a.b.c能构成三角形的条件是需同时满足三个条件:a+b>c,a+c>b,b+c>a。请填空。 void fun(float a,float b,float c) { if( [填空(1)] ) printf("YES\n");//a.b.c能构成三角形 else printf("NO\n");//a.b.c不能构成三角形 } A. a+b>c&&a+c>b&&b+c>a
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【简答题】A.To observe people's attitude towards strangers. B.To see how people get along with their friends. C.To change people's behaviour in social life. D.To find out how shy people are.
【简答题】A.To observe people's attitude towards strangers. B.To see how people get along with their friends. C.To change people's behavior. in social life. D.To find out how shy people are.
【简答题】A.To observe people's attitude towards strangers. B.To see how people get along with their friends. C.To test people's behavior. in social life. D.To find out how shy people are.
【简答题】用括号内所给动词的正确形式完成短文。 How to Observe the United States What is the best way to observe the United States? The best way 1 (depend) on how much you want to spend, what part of the country you want 2 (visit...