Lesson 7 of 34
else if: பல வழிகள்
8 min 25 XP
இரண்டுக்கு மேற்பட்ட வழிகள் இருந்தால் else if பயன்படுத்துங்கள். Java மேலிருந்து கீழாகச் சோதிக்கும்; முதலில் true ஆகும் பகுதி மட்டுமே இயங்கும்.
Example: edit me and press Run
Output Loading Java (first time takes a few seconds)
Press Run to see the result here.வரிசை முக்கியம்! பெரிய மதிப்பை முதலில் சோதியுங்கள். temp >= 15 முதலில் இருந்தால் 40-ம் "Pleasant" என்று வரும்.