Q20.webp
Nanami871

Q20.webp

Question: 20
(Choose 1 answer)
What is the result displayed on the screen of the following program?
#include<stdio.h>
int is Triangle(float a, float b, float c)
{
if ((a>0)&&(b>0)&&(c>0)&&(a<b+c)&&(b<c+a)&&(c<a+b))
return 1;
else
return 0;
int main()
{
float a 1, b 1, c = 1.25;
if (is Triangle(a, b, c))
printf("%.2f, %.2f, %.2f: a triangle.\n", a, b, c);
else
printf("%.2f, %.2f, %.2f: not a triangle.\n", a, b, c);
return 0;
}
A. a, b, c: a triangle
B. 1.00, 1.00, 1.25: a triangle
C. 1, 1, 1.25: a triangle
D. 1.00, 1.00, 1.25: not a triangle

Thông tin

Category
PRF192
Thêm bởi
Nanami871
Ngày thêm
Lượt xem
1,026
Lượt bình luận
3
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom