{"id":1037,"date":"2025-10-11T18:46:24","date_gmt":"2025-10-11T18:46:24","guid":{"rendered":"https:\/\/javigomez.org\/?p=1037"},"modified":"2025-12-05T16:52:57","modified_gmt":"2025-12-05T16:52:57","slug":"cantidad-de-pares-o-impares-introducidos","status":"publish","type":"post","link":"https:\/\/javigomez.org\/index.php\/2025\/10\/11\/cantidad-de-pares-o-impares-introducidos\/","title":{"rendered":"Cantidad de pares o impares introducidos"},"content":{"rendered":"\n<p>Se pide n\u00fameros hasta que se introduce un 0. Hay que mostrar la cantidad de pares e impares introducidos<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Algoritmo sin_titulo\n\t\/\/Pedir n\u00fameros hasta que se escriba un 0 \n\t\/\/Contar cuantos pares e impares han sido introducidos\n\t\n\tnPares=0\n\tnImpares=0\n\t\n\tEscribir \"N\u00famero: \"\n\tLeer n\n\t\n\tMientras n&lt;>0\n\t\tsi n%2=0\n\t\t\tnPares=nPares+1\n\t\tSiNo\n\t\t\tnImpares=nImpares+1\n\t\tFinSi\n\t\tEscribir \"N\u00famero: \"\n\t\tLeer n\n\tFinMientras\n\t\n\tEscribir \"Pares: \" nPares\n\tEscribir \"Impares: \" nImpares\n\n\nFinAlgoritmo<\/code><\/pre>\n\n\n","protected":false},"excerpt":{"rendered":"<p>Se pide n\u00fameros hasta que se introduce un 0. Hay que mostrar la cantidad de pares e impares introducidos<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[271,272],"class_list":["post-1037","post","type-post","status-publish","format-standard","hentry","category-pseint-pseudocodigo","tag-pseint","tag-pseudocodigo"],"_links":{"self":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/1037","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=1037"}],"version-history":[{"count":1,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/1037\/revisions"}],"predecessor-version":[{"id":1038,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/1037\/revisions\/1038"}],"wp:attachment":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/media?parent=1037"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/categories?post=1037"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/tags?post=1037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}