{"id":35841,"date":"2016-04-08T12:19:15","date_gmt":"2016-04-08T17:19:15","guid":{"rendered":"http:\/\/codemaster2016.wordpress.com\/?p=98"},"modified":"2016-04-08T13:03:07","modified_gmt":"2016-04-08T18:03:07","slug":"quiz6-4","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2016\/2016\/04\/quiz6-4\/","title":{"rendered":"quiz6"},"content":{"rendered":"<p>#include &lt;iostream&gt;<\/p>\n<p>using namespace std;<\/p>\n<p>&nbsp;<\/p>\n<p>int euclidianAlgo(int first, int second){<\/p>\n<p>int tem=0;<\/p>\n<p>int res=first%second;<\/p>\n<p>while(res!=0){<\/p>\n<p>first=second;<\/p>\n<p>second=res;<\/p>\n<p>res=first%second; }<\/p>\n<p>&nbsp;<\/p>\n<p>return second; }<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>int main() {<\/p>\n<p>int first, second, val;<\/p>\n<p>cout&lt;&lt;\u201cThis program does the Euclidian Algorithm of the range of numbers you give\u201d&lt;&lt;endl;<\/p>\n<p>cout&lt;&lt;\u201cType the lower value\u201d&lt;&lt;endl;<\/p>\n<p>cin&gt;&gt;first;<\/p>\n<p>cout&lt;&lt;\u201cOk now type the higher value\u201d&lt;&lt;endl;<\/p>\n<p>cin&gt;&gt;second;<\/p>\n<p>val=euclidianAlgo(first, second);<\/p>\n<p>cout&lt;&lt;\u201cThe greatest denominator of the two numbers is: \u201c&lt;&lt;\u201d \u201c&lt;&lt;val&lt;&lt;endl; }<\/p>\n<p>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/codemaster2016.wordpress.com\/98\/\"><img decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/04\/a853394487bd331a0e485219e48819e8.jpg\" \/><\/a> <img loading=\"lazy\" decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/04\/be4421ecc6f53d35f71a547149f93011.jpg#038;blog=105350961&#038;%23038;post=98&#038;%23038;subd=codemaster2016&#038;%23038;ref=&#038;%23038;feed=1\" width=\"1\" height=\"1\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>#include &lt;iostream&gt; using namespace std; &nbsp; int euclidianAlgo(int first, int second){ int tem=0; int res=first%second; while(res!=0){ first=second; second=res; res=first%second; } &nbsp; return second; } &nbsp; &nbsp; &nbsp; int main() { int first, second, val; cout&lt;&lt;\u201cThis program does the Euclidian Algorithm of the range of numbers you give\u201d&lt;&lt;endl; cout&lt;&lt;\u201cType the lower value\u201d&lt;&lt;endl; cin&gt;&gt;first; cout&lt;&lt;\u201cOk now type &hellip; <a href=\"https:\/\/kenscourses.com\/tc101winter2016\/2016\/04\/quiz6-4\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">quiz6<\/span><\/a><\/p>\n","protected":false},"author":21,"featured_media":35850,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[247,45],"class_list":["post-35841","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogs","category-syndicated","tag-quizz6","tag-sin-categoria"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/35841","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/comments?post=35841"}],"version-history":[{"count":2,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/35841\/revisions"}],"predecessor-version":[{"id":35852,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/35841\/revisions\/35852"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media\/35850"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media?parent=35841"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/categories?post=35841"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/tags?post=35841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}