Browse Source

Formatting

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

8
subjects/doop.md → subjects/doop.en.md

@ -4,15 +4,15 @@
Write a program that takes three strings:
- The first and the third one are representations of base-10 signed integers that fit in an int.
- The first and the third one are representations of base-10 signed integers that fit in an int.
- The second one is an arithmetic operator chosen from: `+ - * / %`
- The program must display the result of the requested arithmetic operation, followed by a newline. If the number of parameters is not 3, the program just displays a newline.
- You can assume the string have no mistakes or extraneous characters. Negative numbers, in input or output, will have one and only one leading `-`. The result of the operation fits in an int.
- During tests the strings will have no mistakes or extraneous characters. Negative numbers, in input or output, will have one and only one leading `-`. The result of the operation will fit in an int.
Example of output :
Examples of outputs :
```console
student@ubuntu:~/piscine/test$ go build
@ -25,4 +25,4 @@ student@ubuntu:~/piscine/test$ ./test "10" "+" "-43"
student@ubuntu:~/piscine/test$ ./test
student@ubuntu:~/piscine/test$
```
```
Loading…
Cancel
Save