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.

18 lines
367 B

package main
import (
"fmt"
"piscine"
)
func main() {
fmt.Println(piscine.Atoi("12345"))
fmt.Println(piscine.Atoi("0000000012345"))
fmt.Println(piscine.Atoi("012 345"))
fmt.Println(piscine.Atoi("Hello World!"))
fmt.Println(piscine.Atoi("+1234"))
fmt.Println(piscine.Atoi("-1234"))
fmt.Println(piscine.Atoi("++1234"))
fmt.Println(piscine.Atoi("--1234"))
}