{"id":1016,"date":"2025-10-04T14:15:37","date_gmt":"2025-10-04T14:15:37","guid":{"rendered":"https:\/\/javigomez.org\/?p=1016"},"modified":"2025-12-05T16:52:26","modified_gmt":"2025-12-05T16:52:26","slug":"e1-24-n-numeros-pares-a-partir-de-n","status":"publish","type":"post","link":"https:\/\/javigomez.org\/index.php\/2025\/10\/04\/e1-24-n-numeros-pares-a-partir-de-n\/","title":{"rendered":"E1.24 n n\u00fameros pares a partir de n"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>Algoritmo sin_titulo\n\t\/\/1.24: Se pide representar el algoritmo que nos calcule la suma de los N primeros n\u00fameros pares a partir de n\u00famero N introducido. \n\t\/\/Es decir, si insertamos un 5, nos haga la suma de 6+8+10+12+14. \n\t\/\/Si se mete un 3 el resultado ser\u00e1: 4+6+8 y si es 4 el resultado es 4+6+8+10\n\t\n\tEscribir \"Dame un n\u00famero: \"\n\tleer n\n\tini=0\n\tsi n%2=0\n\t\tini=n\n\tsino\n\t\tini=n+1\n\tFinSi\n\t\n\tpara i=0 hasta n-1\n\t\tEscribir ini+(i*2)\n\tfin para\n\t\nFinAlgoritmo<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"E0124 n primeros n\u00fameros pares desde n\" width=\"1200\" height=\"900\" src=\"https:\/\/www.youtube.com\/embed\/qftkoWSGV0I?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":1017,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[271,272],"class_list":["post-1016","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pseint-pseudocodigo","tag-pseint","tag-pseudocodigo"],"_links":{"self":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/1016","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/comments?post=1016"}],"version-history":[{"count":1,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/1016\/revisions"}],"predecessor-version":[{"id":1018,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/1016\/revisions\/1018"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/media\/1017"}],"wp:attachment":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/media?parent=1016"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/categories?post=1016"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/tags?post=1016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}