golang-exercises/inverse-counting/counters.go

21 lines
251 B
Go
Raw Permalink Normal View History

2024-03-04 08:54:48 +01:00
package main
import (
"fmt"
"time"
)
func upwards() {
for i := 0; i < 100; i++ {
fmt.Println(i)
time.Sleep(time.Millisecond * 75)
}
}
func downwards() {
for i := 100; i >= 0; i-- {
fmt.Println(i)
time.Sleep(time.Millisecond * 75)
}
}