Okay so, I need some values that will for the following problem:
A, B and C are all sides of a triangle
if A, B & C are greater then 0 then they are all invalid sides for a triangle
if A = B + C or B = C + A or C = A + B then the shape is not a triangle
NOW another variable comes in; D which is always equal to 0
so D = 0
and if A is equal to B; D = D + 1
and if B is equal to C; D = D + 1
and if C is equal to A; D = D + 1
and at the end of that, if D is still equal to 0 then the triangle is Scalene
and at the end of that, if D is equal to 1 then the triangle is Isosceles
and at the end of that, if D is equal to something that is not 1 or 0 the triangle is equilateral
I need to come up with at least 4 solutions for all 3 before tomorrow and I just can't do it, I've spent like 4 days trying
Any help/solutions will be greatly appreciated
Thread moved by Nick (Forum Super Moderator): From 'Discuss Anything' as i feel it is more suited here.












