Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":9296,"date":"2015-04-05T23:37:51","date_gmt":"2015-04-06T04:37:51","guid":{"rendered":"https:\/\/feraguirre962.withknown.com\/2015\/mastery20"},"modified":"2015-04-05T23:37:51","modified_gmt":"2015-04-06T04:37:51","slug":"mastery20-8","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2015\/2015\/mastery20-8\/","title":{"rendered":"#Mastery20"},"content":{"rendered":"
\n

Use of loops with “for”<\/span><\/strong><\/p>\n

Primero debemos llamar a nuestra librería iostream <\/strong>y usar using namespace std;<\/strong><\/span><\/p>\n

Segundo, debemos declarar nuestra función principal int main<\/strong><\/span><\/span><\/p>\n

Después, declaramos nuestras variables dentro del int main<\/strong> con tipo, nombre y variable.<\/span><\/span><\/p>\n

Pedimos al usuario por un valor a estas variables con un cout<\/strong><\/span><\/span><\/p>\n

Guardamos este valor en una variable con un cin<\/strong><\/span><\/span><\/p>\n

Aquí utilizaremos un ciclo for <\/strong>para saber la tabla de multiplicar de un numero hasta el 10<\/span><\/span><\/p>\n

Un ciclo for lleva un contador, entre parentesis del ciclo for <\/strong>se debe de definir y declarar un contador, y el valor que tendra en cuanto se corra el programa, la condición del ciclo, cuando se cumpla esta condición se sale del ciclo y continua con el int main <\/strong>, y por ultimo dentro del parentesis se debe declarar como irá incrementando el contador con i++ o i–.<\/span><\/span><\/p>\n

Dentro de este ciclo for<\/strong> imprimiremos la tabla de multiplicar hasta el 10 (contador i<=10) del número que el usuario introduzca.<\/span><\/span><\/p>\n

Terminamos fuera del ciclo for <\/strong>con un return 0; <\/strong>y guardamos compilamos, verificamos que no haya errores y corremos el programa para ver que funcione correctamente.<\/span><\/span><\/p>\n

Aquí un ejemplo de el uso de un ciclo for<\/strong>:<\/span><\/span><\/p>\n

\"\"<\/span><\/span><\/p>\n

#mastery20<\/a> #TC1017<\/a><\/span><\/span><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

Use of loops with “for”Primero debemos llamar a nuestra librería iostream y usar using namespace std;Segundo, debemos declarar nuestra función principal int mainDespués, declaramos nuestras … Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":126,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[144,171,40],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/9296"}],"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\/126"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=9296"}],"version-history":[{"count":2,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/9296\/revisions"}],"predecessor-version":[{"id":13038,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/9296\/revisions\/13038"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=9296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=9296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=9296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}