Which Triangle
Opgave
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.
Løsning
solution.cpp
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 3
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Suggested prompts:
Opsummér dette kapitel
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 7.69
Which Triangle
Stryg for at vise menuen
Opgave
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.
Løsning
solution.cpp
Var alt klart?
Tak for dine kommentarer!
Awesome!
Completion rate improved to 7.69Sektion 2. Kapitel 3
single