English
Tamil Nadu Board of Secondary EducationHSC Science Class 11

Write the syntax for else-if statement. - Computer Applications

Advertisements
Advertisements

Question

Write the syntax for else-if statement.

Answer in Brief

Solution

Syntax:

if (expression1)
{
   Execute code block #1
}
else if (expression2)
{
   Execute code block #2
}
else if (expression3)
{
   Execute code block #3
}
else
{
   If all else fails, execute block #4
}
shaalaa.com
Introduction of Conditional Statements in Java
  Is there an error in this question or solution?
Chapter 15: Control Structure in Javascript - Evaluation [Page 329]

APPEARS IN

Samacheer Kalvi Computer Applications [English] Class 11 TN Board
Chapter 15 Control Structure in Javascript
Evaluation | Q 2. | Page 329
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×