Browse Source

fix(itoabase): adding missing main file for the code editor

pull/2680/head
miguel 3 months ago committed by MSilva95
parent
commit
96a01b4677
  1. 19
      subjects/itoabase/main.go

19
subjects/itoabase/main.go

@ -0,0 +1,19 @@
package main
import (
"fmt"
"piscine"
)
func main() {
fmt.Println(piscine.ItoaBase(10, 2))
fmt.Println(piscine.ItoaBase(255, 16))
fmt.Println(piscine.ItoaBase(-42, 4))
fmt.Println(piscine.ItoaBase(123, 10))
fmt.Println(piscine.ItoaBase(0, 8))
fmt.Println(piscine.ItoaBase(255, 2))
fmt.Println(piscine.ItoaBase(-255, 16))
fmt.Println(piscine.ItoaBase(15, 16))
fmt.Println(piscine.ItoaBase(10, 4))
fmt.Println(piscine.ItoaBase(255, 10))
}
Loading…
Cancel
Save