mirror of https://github.com/01-edu/public.git
Augusto
4 years ago
committed by
xpetit
5 changed files with 49 additions and 0 deletions
@ -0,0 +1,11 @@
|
||||
package piscine |
||||
|
||||
import "github.com/01-edu/z01" |
||||
|
||||
func IsNegative(nb int) { |
||||
if nb < 0 { |
||||
z01.PrintRune('T') |
||||
} else { |
||||
z01.PrintRune('F') |
||||
} |
||||
} |
@ -0,0 +1,5 @@
|
||||
package piscine |
||||
|
||||
func hello() { |
||||
println("Nothing here") |
||||
} |
@ -0,0 +1,7 @@
|
||||
package main |
||||
|
||||
import "fmt" |
||||
|
||||
func main() { |
||||
fmt.Println("Hello world") |
||||
} |
@ -0,0 +1,10 @@
|
||||
package main |
||||
|
||||
import "github.com/01-edu/z01" |
||||
|
||||
func main() { |
||||
alphabet := "abcdefghijklmnopqrstuvwxyz\n" |
||||
for _, letter := range alphabet { |
||||
z01.PrintRune(letter) |
||||
} |
||||
} |
Loading…
Reference in new issue