From 9922fcb4637ca7ae24fe5c3c05dcb4c7cd845247 Mon Sep 17 00:00:00 2001 From: Christopher Fremond Date: Wed, 24 Apr 2019 17:59:06 +0100 Subject: [PATCH] formatting --- subjects/gcd.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/subjects/gcd.md b/subjects/gcd.md index 9d1a509e..c9e4e30f 100644 --- a/subjects/gcd.md +++ b/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 $