mirror of https://github.com/01-edu/public.git
fix(Checkpoints): add the mains for the exams exercises to work in the code editor
This commit is contained in:
parent
04714e135a
commit
38c9ac3641
|
@ -0,0 +1,20 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"piscine"
|
||||||
|
|
||||||
|
"github.com/01-edu/z01"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
piscine.PrintNbrBase(125, "0123456789")
|
||||||
|
z01.PrintRune('\n')
|
||||||
|
piscine.PrintNbrBase(-125, "01")
|
||||||
|
z01.PrintRune('\n')
|
||||||
|
piscine.PrintNbrBase(125, "0123456789ABCDEF")
|
||||||
|
z01.PrintRune('\n')
|
||||||
|
piscine.PrintNbrBase(-125, "choumi")
|
||||||
|
z01.PrintRune('\n')
|
||||||
|
piscine.PrintNbrBase(125, "aa")
|
||||||
|
z01.PrintRune('\n')
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"piscine"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
fmt.Printf("%#v\n", piscine.SplitWhiteSpaces("Hello how are you?"))
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"piscine"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
a := 0
|
||||||
|
b := 1
|
||||||
|
piscine.Swap(&a, &b)
|
||||||
|
fmt.Println(a)
|
||||||
|
fmt.Println(b)
|
||||||
|
}
|
Loading…
Reference in New Issue