Computer Science, asked by sunitagupta54637, 11 months ago

Please answer the question

Attachments:

Answers

Answered by AakashMaurya21
2

if (direction == "N") {

a = "North";

break;

}

else if (direction == "E") {

a = "East";

break;

}

else if (direction == "W") {

a = "West";

break;

}

else if (direction == "S") {

a = "South";

break;

}

else {

a = "Enter correct code";

}

If this answer helped please mark it as brainliest.

#ANSWERWITHQUALITY

#BAL

Similar questions