mirror of https://github.com/01-edu/public.git
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.
21 lines
491 B
21 lines
491 B
5 years ago
|
package main
|
||
5 years ago
|
|
||
|
import (
|
||
|
"github.com/01-edu/z01"
|
||
|
|
||
|
solutions "./solutions"
|
||
|
student "./student"
|
||
|
)
|
||
|
|
||
5 years ago
|
func main() {
|
||
5 years ago
|
i := 0
|
||
|
for i < 30 {
|
||
|
nb := z01.RandIntBetween(-8, 8)
|
||
|
power := z01.RandIntBetween(-10, 10)
|
||
5 years ago
|
z01.Challenge("IterativePower", student.IterativePower, solutions.IterativePower, nb, power)
|
||
5 years ago
|
i++
|
||
|
}
|
||
5 years ago
|
z01.Challenge("IterativePower", student.IterativePower, solutions.IterativePower, 0, 0)
|
||
|
z01.Challenge("IterativePower", student.IterativePower, solutions.IterativePower, 0, 1)
|
||
5 years ago
|
}
|