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
632 B

5 years ago
## printnbr
5 years ago
### 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`.
5 years ago
### Fonction attendue
```go
func PrintNbr(n int) {
}
```
5 years ago
### 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:~/[[ROOT]]/test$ go build
student@ubuntu:~/[[ROOT]]/test$ ./test
-1230123
student@ubuntu:~/[[ROOT]]/test$
```