+ 1

C program for proving existence of triangle.

In a program,I was told to take input of 3 sides of triangle and show whether a triangle could be formed or not...A book stated: ((a||b||c)!=0&&(a+b)>c&&(b+c)>a&&(c+a)>b)...as condition But won't it be (a&&b&&c)!=0..?

3rd Mar 2018, 8:16 AM
Abdus Samee
Abdus Samee - avatar
1 ответ
+ 3
Yes, you are absolutely correct.
3rd Mar 2018, 8:25 AM
Naveen Maurya
Naveen Maurya - avatar