+ 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..?
1 Antwort
+ 3
Yes, you are absolutely correct.