#include<\/a> <ctime><\/p>\nusing namespace std;<\/p>\n
int main(){<\/p>\n
int numerores, numerointento, intento=0;<\/p>\n
<\/p>\n
srand(time(NULL));<\/p>\n
numerores=rand()%100+1;<\/p>\n
<\/p>\n
while(numerores!=numerointento){<\/p>\n
intento=intento+1;<\/p>\n
cout<<“Adivina el numero que estoy pensando entre 1 y 100: “;<\/p>\n
cin>>numerointento;<\/p>\n
<\/p>\n
if(numerointento>numerores){<\/p>\n
cout<< “ste numero es mayor que mi numero “<<endl;<\/p>\n
<\/p>\n
}<\/p>\n
if(numerointento<numerores){<\/p>\n
cout<< “Este numero es menor que mi numero “<<endl;<\/p>\n
<\/p>\n
}<\/p>\n
if(numerointento==numerores){<\/p>\n
<\/p>\n
cout<< “Felicidades has acertado! “<<endl;<\/p>\n
cout<< “El numero de intentos que has realizado para adivinar el numero es de: “<<intento<< ” “<<endl;<\/p>\n
}<\/p>\n
<\/p>\n
}<\/p>\n
<\/p>\n
return 0;<\/p>\n
}<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"
#include <iostream>#include <cstdlib>#include <ctime>using namespace std;int main(){int numerores, numerointento, intento=0; srand(time(NULL));numerores=rand()%100+1; while(numerores!=numerointento){ intento=i… 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\/12096"}],"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=12096"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/12096\/revisions"}],"predecessor-version":[{"id":12097,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/12096\/revisions\/12097"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=12096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=12096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=12096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}