#include<\/a> <iostream><\/p>\nusing namespace std;<\/p>\n
<\/p>\n
int uno,dos,n;<\/p>\n
int gcd (int a,int b)<\/p>\n
{<\/p>\n
if(a==b)<\/p>\n
{<\/p>\n
n=a;<\/p>\n
}<\/p>\n
if(a>b)<\/p>\n
{<\/p>\n
gcd(a-b,b);<\/p>\n
}<\/p>\n
if(a<b)<\/p>\n
{<\/p>\n
gcd(a,b-a);<\/p>\n
}<\/p>\n
return n;<\/p>\n
}<\/p>\n
int main()<\/p>\n
{<\/p>\n
cout<<“ingresa un número “<<endl;<\/p>\n
cin>>uno;<\/p>\n
cout<<“ingresa otro número “<<endl;<\/p>\n
cin>>dos;<\/p>\n
int resultado=gcd(uno,dos);<\/p>\n
cout<<“el gdc de “<<uno<<” y “<<dos<<” es “<<resultado<<endl;<\/p>\n
return 0;<\/p>\n
}<\/p>\n
<\/p>\n
<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"
#include <iostream>using namespace std; int uno,dos,n;int gcd (int a,int b){if(a==b){n=a;}if(a>b){gcd(a-b,b);}if(a<b){gcd(a,b-a);}return n;}int main(){cout<<“ingresa un número “<<endl;cin>>uno;cout<… Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":88,"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\/8153"}],"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\/88"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=8153"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/8153\/revisions"}],"predecessor-version":[{"id":8154,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/8153\/revisions\/8154"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=8153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=8153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=8153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}