mirror of https://github.com/01-edu/public.git
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.
617 B
617 B
comcheck
Instructions
Write a program comcheck
that displays on the standard output Alert!!!
followed by newline('\n'
) if at least one of the arguments passed in parameter matches the strings
:
-
01
,galaxy
orgalaxy 01
. -
If none of the parameters match, the program displays a newline(
'\n'
).
Usage
student@ubuntu:~/piscine-go/comcheck$ go build
student@ubuntu:~/piscine-go/comcheck$ ./comcheck "I" "Will" "Enter" "the" "galaxy"
Alert!!!
student@ubuntu:~/piscine-go/comcheck$ ./comcheck "galaxy 01" "do" "you" "hear" "me"
Alert!!!
student@ubuntu:~/piscine-go/comcheck$