Browse Source

Update doop.en.md

content-update
LEEDASILVA 5 years ago committed by GitHub
parent
commit
774321d184
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      subjects/doop.en.md

14
subjects/doop.en.md

@ -21,18 +21,18 @@ The program has to handle the modulo and division operations by 0 as shown on th
### Usage
```console
student@ubuntu:~/piscine/test$ go build doop.go
student@ubuntu:~/piscine/test$ ./doop
student@ubuntu:~/piscine/test$ ./doop 1 + 1 | cat -e
student@ubuntu:~/piscine-go/test$ go build doop.go
student@ubuntu:~/piscine-go/test$ ./doop
student@ubuntu:~/piscine-go/test$ ./doop 1 + 1 | cat -e
2$
student@ubuntu:~/piscine/test$ ./doop hello + 1 | cat -e
student@ubuntu:~/piscine-go/test$ ./doop hello + 1 | cat -e
0$
student@ubuntu:~/piscine/test$ ./doop 1 p 1 | cat -e
student@ubuntu:~/piscine-go/test$ ./doop 1 p 1 | cat -e
0$
student@ubuntu:~/piscine/test$ ./doop 1 / 0 | cat -e
student@ubuntu:~/piscine-go/test$ ./doop 1 / 0 | cat -e
No division by 0$
student@ubuntu:~/piscine-go/test$ ./doop 1 % 0 | cat -e
No modulo by 0$
student@ubuntu:~/piscine-go/test$ ./doop 1 "*" 1
1
```
```

Loading…
Cancel
Save