Lesson 4 of 24

Conditions: if, else మరియు switch

9 min 25 XP

if / else if / else మరియు switch సరిగ్గా C లాగే పనిచేస్తాయి. Conditions ను && (AND), || (OR), ! (NOT) తో కలపండి.

Example: edit me and press Run

Output Loading C++ (first time takes a few seconds)
Press Run to see the result here.

Challenge

+25 XP

మూడు భుజాల పొడవులను చదవండి. త్రిభుజం ఏర్పడకపోతే "Invalid", లేకపోతే "Equilateral", "Isosceles" లేదా "Scalene" print చేయండి. Input: 3 4 5 → Output: Scalene

Output Loading C++ (first time takes a few seconds)
Press Run to see the result here.