Skip to content

Commit

Permalink
fix(itoabase): adding missing main file for the code editor
Browse files Browse the repository at this point in the history
  • Loading branch information
MSilva95 committed Aug 2, 2024
1 parent d70fd80 commit 96a01b4
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions subjects/itoabase/main.go
Original file line number Diff line number Diff line change
@@ -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))
}

0 comments on commit 96a01b4

Please sign in to comment.