Course Content
C++ Conditional Statements
C++ Conditional Statements
Which Triangle
Swipe to show code editor
-
Identify the type of triangle based on the lengths of its sides whether it is a equilateral triangle, or isosceles triangle.
-
Output in the console:
It is isosceles triangle!
if it is isosceles;It is equilateral triangle!
if it is equilatera;None of them
if it is none of the above.
Thanks for your feedback!
Which Triangle
Swipe to show code editor
-
Identify the type of triangle based on the lengths of its sides whether it is a equilateral triangle, or isosceles triangle.
-
Output in the console:
It is isosceles triangle!
if it is isosceles;It is equilateral triangle!
if it is equilatera;None of them
if it is none of the above.
Thanks for your feedback!
Which Triangle
Swipe to show code editor
-
Identify the type of triangle based on the lengths of its sides whether it is a equilateral triangle, or isosceles triangle.
-
Output in the console:
It is isosceles triangle!
if it is isosceles;It is equilateral triangle!
if it is equilatera;None of them
if it is none of the above.
Thanks for your feedback!
Swipe to show code editor
-
Identify the type of triangle based on the lengths of its sides whether it is a equilateral triangle, or isosceles triangle.
-
Output in the console:
It is isosceles triangle!
if it is isosceles;It is equilateral triangle!
if it is equilatera;None of them
if it is none of the above.