{"id":1040,"date":"2025-10-28T18:01:05","date_gmt":"2025-10-28T18:01:05","guid":{"rendered":"https:\/\/javigomez.org\/?p=1040"},"modified":"2025-12-05T16:53:01","modified_gmt":"2025-12-05T16:53:01","slug":"4-01-par-impar-positivo-negativo","status":"publish","type":"post","link":"https:\/\/javigomez.org\/index.php\/2025\/10\/28\/4-01-par-impar-positivo-negativo\/","title":{"rendered":"AR04.01. Par\/Impar, Positivo\/Negativo"},"content":{"rendered":"\n<p>Pedir n\u00fameros por pantalla hasta que escriban un 0. Decir si es par o impar. Decir si es positivo o negativo<\/p>\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=\"4.01. Par\/Impar, Positivo\/Negativo\" width=\"1200\" height=\"900\" src=\"https:\/\/www.youtube.com\/embed\/rjh4f8Al45E?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\n\n\n<pre class=\"wp-block-code\"><code>import java.util.Scanner;\n\npublic class AR0401 {\n    public static void main(String&#91;] args) {\n        \/\/Pedir n\u00fameros por pantalla hasta que escriban un 0\n        \/\/Decir si es par o impar\n        \/\/Decir si es positivo o negativo\n        Scanner sc = new Scanner(System.in);\n        System.out.println(\"Dame un n\u00famero: \");\n        int num = sc.nextInt();\n\n        while (num!=0){\n\n            if (num%2==0) System.out.println(\"Es Par\");\n            else System.out.println(\"Es Impar\");\n            if (num&lt;0) System.out.println(\"Es Negativo\");\n            else System.out.println(\"Es Positivo\");\n\n\n            System.out.println(\"Dame un n\u00famero: \");\n            num = sc.nextInt();\n        }\n\n\n\n\n\n    }\n}\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Pedir n\u00fameros por pantalla hasta que escriban un 0. Decir si es par o impar. Decir si es positivo o negativo<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1040","post","type-post","status-publish","format-standard","hentry","category-java"],"_links":{"self":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/1040","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=1040"}],"version-history":[{"count":2,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/1040\/revisions"}],"predecessor-version":[{"id":1042,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/1040\/revisions\/1042"}],"wp:attachment":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/media?parent=1040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/categories?post=1040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/tags?post=1040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}