The little weather station noted five days of rain (in mm). Show one line a day: the day, a space, then as many # as the rain, like Mon ###. The starter already prints the lines; you build bar.
Mon ### Tue # Wed ##### Thu ## Fri ####
package main
import "fmt"
var days = []string{"Mon", "Tue", "Wed", "Thu", "Fri"}
var rain = []int{3, 1, 5, 2, 4}
func main() {
for i := range days {
bar := ""
// your code here: add as many "#" to bar as rain[i] says
fmt.Println(days[i], bar)
}
}
Run tries the examples. When they look right, Submit.