You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
491 B

package main
import (
"github.com/01-edu/z01"
solutions "./solutions"
student "./student"
)
func main() {
i := 0
for i < 30 {
nb := z01.RandIntBetween(-8, 8)
power := z01.RandIntBetween(-10, 10)
z01.Challenge("IterativePower", student.IterativePower, solutions.IterativePower, nb, power)
i++
}
z01.Challenge("IterativePower", student.IterativePower, solutions.IterativePower, 0, 0)
z01.Challenge("IterativePower", student.IterativePower, solutions.IterativePower, 0, 1)
}