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.
 
 
 
 

624 B

displaya

Instructions

Écrire un programme qui prend une string, et qui affiche le premier caractère a qu'il trouve dedans, suivi par un newline('\n'). Si il n'y a pas de caractère a dans la string, le programme affiche juste un a suivi d'un newline('\n'). Si le nombre de paramètres n'est pas 1, le programme affiche un a suivi d'un newline('\n').

Utilisation

student@ubuntu:~/piscine/test$ go build
student@ubuntu:~/piscine/test$ ./test "abc"
a
student@ubuntu:~/piscine/test$ ./test "bcvbvA"
a
student@ubuntu:~/piscine/test$ ./test "nbv"
a
student@ubuntu:~/piscine/test$