From 97a98c801a1dcce6c110cfc079451f0ab09d6dc0 Mon Sep 17 00:00:00 2001 From: Frenchris <34804391+Frenchris@users.noreply.github.com> Date: Sat, 27 Apr 2019 00:34:20 +0100 Subject: [PATCH] Final update --- subjects/doop.en.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/subjects/doop.en.md b/subjects/doop.en.md index 60c809d0..1fdd5a9f 100644 --- a/subjects/doop.en.md +++ b/subjects/doop.en.md @@ -10,11 +10,11 @@ The program has to be used with three arguments: - An operator - Another value -In case of an invalid entry the programs prints `0`. +In case of an invalid operator the programs prints `0`. In case of an invalid number of arguments the program prints nothing. -The program has to handle the modulo and division by 0 as shown on the output examples below. +The program has to handle the modulo and division operations by 0 as shown on the output examples below. `fmt.Print` is authorized. @@ -25,8 +25,8 @@ student@ubuntu:~/piscine/test$ go build doop.go student@ubuntu:~/piscine/test$ ./doop student@ubuntu:~/piscine/test$ ./doop 1 + 1 2 -student@ubuntu:~/piscine/test$ ./doop hello + 1 -0 +student@ubuntu:~/piscine/test$ ./doop hello + 1 | cat -e +0$ student@ubuntu:~/piscine/test$ ./doop 1 p 1 0 student@ubuntu:~/piscine/test$ ./doop 1 + 1