Which Triangle
Task
Swipe to start coding
- Identify the type of triangle based on the lengths of its sides: whether it is an equilateral or isosceles triangle. Ensure the checks are performed in the correct order.
- Output in the console:
It is equilateral triangle!
if it is equilatera;It is isosceles triangle!
if it is isosceles;None of them
if it is none of the above.
Solution
solution.cpp
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 3
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 7.69
Which Triangle
Swipe to show menu
Task
Swipe to start coding
- Identify the type of triangle based on the lengths of its sides: whether it is an equilateral or isosceles triangle. Ensure the checks are performed in the correct order.
- Output in the console:
It is equilateral triangle!
if it is equilatera;It is isosceles triangle!
if it is isosceles;None of them
if it is none of the above.
Solution
solution.cpp
Everything was clear?
Thanks for your feedback!
Awesome!
Completion rate improved to 7.69SectionΒ 2. ChapterΒ 3
single