{"id":35911,"date":"2016-04-08T21:39:22","date_gmt":"2016-04-09T02:39:22","guid":{"rendered":"http:\/\/edmoprogramming.wordpress.com\/?p=484"},"modified":"2016-04-08T22:04:41","modified_gmt":"2016-04-09T03:04:41","slug":"quiz-6-13","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2016\/2016\/04\/quiz-6-13\/","title":{"rendered":"Quiz 6"},"content":{"rendered":"<p>Cout&lt;&lt;&#8220;Hello People&#8221;&lt;&lt;endl.<\/p>\n<p>Hello again, now I&#8217;m posting about my quiz 6 of the course. On this time, we have to create a program who can give the great common denominator between two numbers that the user enter into the program, here the instructions:<\/p>\n<p>The function should receive two integers and return an integer.Obviously you should test your function, so create a main program that asks the user for two values, calculates the gcd and displays that.<\/p>\n<p>It wasn&#8217;t too difficult, because we just need an if conditional and a while loop to make the cicle and find the greatest common denominator between the two numbers, and here, the code:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-493\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/04\/5d22060e37e2c3e4189b96c7589fe417.jpg\" alt=\"q6.png\"   \/><\/p>\n<p>And the program on terminal running:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-492\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/04\/6588d4fcda274d617760561106258e8c.jpg\" alt=\"g6\"   \/><\/p>\n<p>Don&#8217;t forget to look my codes on github so you can use it and learn how to make it, also you can add comments !!<\/p>\n<p><a href=\"https:\/\/github.com\/eduardomrlsg\/TC101\/blob\/master\/Quiz6\" rel=\"nofollow\">https:\/\/github.com\/eduardomrlsg\/TC101\/blob\/master\/Quiz6<\/a><\/p>\n<p>Regards. EdMo.<\/p>\n<p>&nbsp;<\/p>\n<p>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/edmoprogramming.wordpress.com\/484\/\"><img decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/04\/575bc4b6edd74ba54a5ac536fbaa949b.jpg\" \/><\/a> <img loading=\"lazy\" decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/04\/0c99977abe974d11dd185fb6cee08c17.jpg#038;blog=105297467&#038;%23038;post=484&#038;%23038;subd=edmoprogramming&#038;%23038;ref=&#038;%23038;feed=1\" width=\"1\" height=\"1\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cout&lt;&lt;&#8220;Hello People&#8221;&lt;&lt;endl. Hello again, now I&#8217;m posting about my quiz 6 of the course. On this time, we have to create a program who can give the great common denominator between two numbers that the user enter into the program, here the instructions: The function should receive two integers and return an integer.Obviously you should &hellip; <a href=\"https:\/\/kenscourses.com\/tc101winter2016\/2016\/04\/quiz-6-13\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Quiz 6<\/span><\/a><\/p>\n","protected":false},"author":25,"featured_media":35912,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[20,45],"class_list":["post-35911","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogs","category-syndicated","tag-quiz","tag-sin-categoria"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/35911","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\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/comments?post=35911"}],"version-history":[{"count":2,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/35911\/revisions"}],"predecessor-version":[{"id":35921,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/35911\/revisions\/35921"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media\/35912"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media?parent=35911"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/categories?post=35911"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/tags?post=35911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}