Beep Bop

Report a typo

Suppose you have developed a robot that follows simple commands in the following order: Up, Down, Left and Right.

However, it doesn't follow these orders at all! Could you fix the block of constants in the code below?

Tip: Don't forget that the constant name should be on the left.

Write a program in Go
// Fix the code below:
const (
1 = Up
2 = Down
3 = Left
4 = Bottom // Hmmm
)
___

Create a free account to access the full topic