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.
 
 
 
 
 
 

629 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

func PrintNbr(int n) {

}

Utilisation

Voici un éventuel programme pour tester votre fonction :

package main

import piscine ".."

func main() {
	piscine.PrintNbr(-123)
	piscine.PrintNbr(0)
	piscine.PrintNbr(123)
}

Et son résultat :

student@ubuntu:~/piscine/test$ go build
student@ubuntu:~/piscine/test$ ./test
-1230123
student@ubuntu:~/piscine/test$