4 seasons

Report a typo

There are four seasons in many parts of the world: Spring, Summer, Autumn, and Winter. The order of these seasons might vary depending on the country and hemisphere.

Your task is to declare a block of constants with the names of the seasons using the iota keyword to represent their order. In this task, we'll assume that the seasons start with Spring.

Remember that iota starts counting from 0, so you must ensure that Spring = iota + 1.
Write a program in Go
const (
// Write your code below:
Spring = iota + ?
?
?
?
)
___

Create a free account to access the full topic