formatting

This commit is contained in:
Christopher Fremond 2019-04-24 17:59:06 +01:00 committed by Frenchris
parent f887eea109
commit 9922fcb463
1 changed files with 6 additions and 5 deletions

View File

@ -1,15 +1,16 @@
# gcd
## Instructions
## gcd
### Instructions
Write a program that takes two strings representing two strictly positive
integers that fit in an int.
Display their greatest common divisor followed by a newline (It's always a
Display their greatest common divisor followed by a newline (It is always a
strictly positive integer).
If the number of parameters is not 2, display a newline.
## Expected output
Example of output :
```console
student@ubuntu:~/student/gcd$ go build
@ -19,7 +20,7 @@ student@ubuntu:~/student/gcd$ ./gcd 42 12 | cat -e
6$
student@ubuntu:~/student/gcd$ ./gcd 14 77 | cat -e
7$
student@ubuntu:~/student/gcd$ ./gcd 17 3 | cat -e
student@ubuntu:~/student/gcd$ ./gcd 17 3 | cat -e
1$
student@ubuntu:~/student/gcd$ ./gcd | cat -e
$