Skip to content

Commit

Permalink
fix(Checkpoints): add the mains for the exams exercises to work in th…
Browse files Browse the repository at this point in the history
…e code editor
  • Loading branch information
MSilva95 committed Jan 18, 2024
1 parent 04714e1 commit 38c9ac3
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
20 changes: 20 additions & 0 deletions subjects/printnbrbase/main.go
Original file line number Diff line number Diff line change
@@ -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')
}
10 changes: 10 additions & 0 deletions subjects/splitwhitespaces/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package main

import (
"fmt"
"piscine"
)

func main() {
fmt.Printf("%#v\n", piscine.SplitWhiteSpaces("Hello how are you?"))
}
14 changes: 14 additions & 0 deletions subjects/swap/main.go
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit 38c9ac3

Please sign in to comment.