{"id":798,"date":"2024-10-10T16:24:34","date_gmt":"2024-10-10T16:24:34","guid":{"rendered":"https:\/\/javigomez.org\/?p=798"},"modified":"2025-09-29T20:32:51","modified_gmt":"2025-09-29T20:32:51","slug":"a1-24-algoritmo-que-calcule-la-suma-de-n-numeros-pares-a-partir-de-n","status":"publish","type":"post","link":"https:\/\/javigomez.org\/index.php\/2024\/10\/10\/a1-24-algoritmo-que-calcule-la-suma-de-n-numeros-pares-a-partir-de-n\/","title":{"rendered":"A1.24 Algoritmo que calcule la suma de N n\u00fameros pares a partir de N"},"content":{"rendered":"\n<p>Se pide representar el algoritmo que nos calcule la suma de los N primeros n\u00fameros pares a partir de n\u00famero N introducido. Es decir, si insertamos un 5, nos haga la suma de 6+8+10+12+14. Si se mete un 3 el resultado ser\u00e1: 4+6+8 y si es 4 el resultado es 4+6+8+10<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Algoritmo sin_titulo\n\tEscribir \"Introducir dimensi\u00f3n:\"\n\tLeer n\n\t\n\tsi n%2=0\n\t\tini=n\n\tSiNo\n\t\tini=n+1\n\tFinSi\n\ts=0\n\tpara i=ini hasta n+n*2-1 Con Paso 2\n\t\tEscribir sin saltar \"+\" i\n\t\ts=s+i\n\tFinPara\n\tEscribir \"\"\n\tEscribir \"Suma: \" s\nFinAlgoritmo\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"A1 24 NumerosPares\" width=\"1200\" height=\"675\" src=\"https:\/\/www.youtube.com\/embed\/tMDJfxKypCQ?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":"<p>Se pide representar el algoritmo que nos calcule la suma de los N primeros n\u00fameros pares a partir de n\u00famero N introducido. Es decir, si &hellip; <\/p>\n","protected":false},"author":1,"featured_media":799,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[259,271],"class_list":["post-798","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pseint-pseudocodigo","tag-pares","tag-pseint"],"_links":{"self":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/798","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=798"}],"version-history":[{"count":1,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/798\/revisions"}],"predecessor-version":[{"id":838,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/798\/revisions\/838"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/media\/799"}],"wp:attachment":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/media?parent=798"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/categories?post=798"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/tags?post=798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}