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.
24 lines
488 B
24 lines
488 B
5 years ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"github.com/01-edu/z01"
|
||
|
|
||
5 years ago
|
correct "./correct"
|
||
5 years ago
|
student "./student"
|
||
5 years ago
|
)
|
||
|
|
||
5 years ago
|
func main() {
|
||
5 years ago
|
var table [10]int
|
||
|
|
||
|
for j := 0; j < 5; j++ {
|
||
|
for i := 0; i < 10; i++ {
|
||
|
table[i] = z01.RandIntBetween(0, 1000)
|
||
|
}
|
||
5 years ago
|
z01.Challenge("PrintMemory", student.PrintMemory, correct.PrintMemory, table)
|
||
5 years ago
|
}
|
||
|
table2 := [10]int{104, 101, 108, 108, 111, 16, 21, 42}
|
||
5 years ago
|
z01.Challenge("PrintMemory", student.PrintMemory, correct.PrintMemory, table2)
|
||
5 years ago
|
}
|
||
5 years ago
|
|
||
|
// TODO: this can be simplified a lot
|