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.