Browse Source

formatting

content-update
Christopher Fremond 5 years ago committed by Frenchris
parent
commit
9922fcb463
  1. 11
      subjects/gcd.md

11
subjects/gcd.md

@ -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
$

Loading…
Cancel
Save