Stacking algorithm to input 3 pieces of numbers denote the length of the side of a triangle. If the 3 sides of the triangle is equal in length will be printed the words "equilateral". If only two sides of the same will be printed "isosceles" and when the 3 side triangle is not the same as it will be printed "not both".
Hint: a) Using the operator AND (& &) / OR (| |)
Hint: b) Not allowed to use your logical AND and OR
a)
b)
0 comments