#include<\/a> <iostream><\/p>\nusing namespace std;<\/p>\n
int gcd (int x, int y){<\/p>\n
if (x == y){<\/p>\n
return x;<\/p>\n
} else {<\/p>\n
if (x > y){<\/p>\n
return gcd (x – y, y);<\/p>\n
} else {<\/p>\n
return gcd (x, y – x);<\/p>\n
}<\/p>\n
}<\/p>\n
}<\/p>\n
int main (){<\/p>\n
int a;<\/p>\n
int b;<\/p>\n
cout << “Please enter the biggest number: “;<\/p>\n
cin >> a;<\/p>\n
cout << “Now enter the lowest number: “;<\/p>\n
cin >> b;<\/p>\n
cout << endl;<\/p>\n
cout << endl;<\/p>\n
cout << “The Greatest Common Divisor of these numbers is: “;<\/p>\n
cout << gcd (a,b) << endl;<\/p>\n
system(“pause”);<\/p>\n
return 0;<\/p>\n
}<\/p>\n
<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"
#include <iostream>using namespace std;int gcd (int x, int y){if (x == y){return x;} else {if (x > y){return gcd (x – y, y);} else {return gcd (x, y – x);}}}int main (){int a;int b;cout << “Please enter the biggest number: “;cin… Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":139,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,26],"tags":[95],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/12197"}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/users\/139"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=12197"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/12197\/revisions"}],"predecessor-version":[{"id":12198,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/12197\/revisions\/12198"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=12197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=12197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=12197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}