mirror of https://github.com/01-edu/public.git
docs(doop): make subject example coherent with expected solution
This commit is contained in:
parent
0cc9cf2e88
commit
1ac581f829
|
@ -19,13 +19,16 @@ The program has to handle the modulo and division operations by 0 as shown on th
|
||||||
```console
|
```console
|
||||||
$ go run .
|
$ go run .
|
||||||
$ go run . 1 + 1 | cat -e
|
$ go run . 1 + 1 | cat -e
|
||||||
2$
|
2
|
||||||
|
$
|
||||||
$ go run . hello + 1
|
$ go run . hello + 1
|
||||||
$ go run . 1 p 1
|
$ go run . 1 p 1
|
||||||
$ go run . 1 / 0 | cat -e
|
$ go run . 1 / 0 | cat -e
|
||||||
No division by 0$
|
No division by 0
|
||||||
|
$
|
||||||
$ go run . 1 % 0 | cat -e
|
$ go run . 1 % 0 | cat -e
|
||||||
No modulo by 0$
|
No modulo by 0
|
||||||
|
$
|
||||||
$ go run . 9223372036854775807 + 1
|
$ go run . 9223372036854775807 + 1
|
||||||
$ go run . -9223372036854775809 - 3
|
$ go run . -9223372036854775809 - 3
|
||||||
$ go run . 9223372036854775807 "*" 3
|
$ go run . 9223372036854775807 "*" 3
|
||||||
|
|
Loading…
Reference in New Issue