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.