Computer Science, asked by jyotsnasinha04445, 1 year ago

Rewrite the following code using if...else if statement.
Switch (direction)
{
Case "N" : a = "North"; break;
Case "E" : a = "East"; break;
Case "W" : a = "West"; break;
Case "S" : a = "South"; break;
default : a = "Enter correct code";
}
document.write (a)

Answers

Answered by nidhi5003
2

here is your answer

hope so it may help you

please mark me as the Brainliest answer:-)

Attachments:
Answered by PranathP
13

Else statement is-

else

{

System.out.println("Enter correct code.");

}

Refer to the attachment

Attachments:
Similar questions