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.

41 lines
625 B

# printnbr
## Instructions
Écrire une fonction qui affiche un `int` passé en paramètre.
Toutes les valeurs de type `int` doivent être affichables.
Vous ne pouvez pas convertir en `int64`.
## Fonction attendue
```go
func PrintNbr(int n) {
}
```
## Utilisation
Voici un éventuel [programme](TODO-LINK) pour tester votre fonction :
```go
package main
import piscine ".."
func main() {
piscine.PrintNbr(-123)
piscine.PrintNbr(0)
piscine.PrintNbr(123)
}
```
Et son résultat :
```console
student@ubuntu:~/piscine/test$ go build
student@ubuntu:~/piscine/test$ ./test
-1230123
student@ubuntu:~/piscine/test$
```