Please answer the question
Attachments:
Answers
Answered by
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