mirror of https://github.com/01-edu/public.git
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.
17 lines
367 B
17 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")) |
|
}
|
|
|