Direction

Report a typo

Write a program, that reads a direction number: 1 – up, 2 – down, 3 – left, 4 – right, 0 – stay and outputs move up (or move down, or move left, or move right, or do not move depending on the number). If the input does not correspond to any of the listed directions, output error!

Output text should match the sample! It is true for the letter case and spaces.

Sample Input 1:

1

Sample Output 1:

move up
Write a program in Kotlin
fun main() {
// write your code here
}
___

Create a free account to access the full topic