Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Which Triangle | Conditional Control Flow Practice
C++ Conditional Statements
course content

Kurssisisältö

C++ Conditional Statements

C++ Conditional Statements

1. Introduction to Conditional Statements
2. Conditional Control Flow Practice
3. Advanced Topics

book
Which Triangle

Tehtävä

Swipe to start coding

  1. 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.
  2. 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.

Ratkaisu

cpp

solution

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 2. Luku 3
toggle bottom row

book
Which Triangle

Tehtävä

Swipe to start coding

  1. 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.
  2. 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.

Ratkaisu

cpp

solution

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 2. Luku 3
Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Pahoittelemme, että jotain meni pieleen. Mitä tapahtui?
some-alt