{"id":1054,"date":"2025-11-04T21:36:56","date_gmt":"2025-11-04T21:36:56","guid":{"rendered":"https:\/\/javigomez.org\/?p=1054"},"modified":"2025-12-05T16:51:26","modified_gmt":"2025-12-05T16:51:26","slug":"ee03-nombre-con-asteriscos","status":"publish","type":"post","link":"https:\/\/javigomez.org\/index.php\/2025\/11\/04\/ee03-nombre-con-asteriscos\/","title":{"rendered":"EE03. Nombre con asteriscos"},"content":{"rendered":"\n<pre class=\"wp-block-preformatted\">Solicitar nombres hasta que lo deje vac\u00edo<br>por cada nombre solicitar un n\u00famero del 1 al 5<br>si no es correcto, no avanzar<br>Escribir el nombre y al lado, tantos asteriscos como el n\u00famero<br>        \/\/Javi<br>        \/\/ 4<br>        \/\/Javi ****<\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>import java.util.Scanner;\n\npublic class EEw03 {\n    public static void main(String&#91;] args) {\n        \/\/Solicitar nombres hasta que lo deje vacio\n        \/\/por cada nombre solicitar un n\u00famero del 1 al 5\n        \/\/si no es correcto, no avanzar\n        \/\/Escribir el nombre y al lado, tantos asteriscos como el n\u00famero\n        \/\/Javi\n        \/\/ 4\n        \/\/Javi ****\n        Scanner sc = new Scanner(System.in);\n        System.out.println(\"Nombre: \");\n        String name = sc.nextLine();\n        while (!name.equals(\"\")){\n\n            int num=0;\n            while (num&lt;1 || num>5){\n                System.out.println(\"N\u00famero: \");\n                num = sc.nextInt();\n            }\n\n            System.out.print(name + \" \");\n            for (int i=1;i&lt;=num;i++)\n                System.out.print(\"*\");\n            System.out.println();\n            sc.nextLine();\n            System.out.println(\"Nombre: \");\n            name = sc.nextLine();\n        }\n\n\n    }\n}\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-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"EE03 Nombres con asteriscos\" width=\"1200\" height=\"900\" src=\"https:\/\/www.youtube.com\/embed\/ClD1HreEm4I?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>Solicitar nombres hasta que lo deje vac\u00edopor cada nombre solicitar un n\u00famero del 1 al 5si no es correcto, no avanzarEscribir el nombre y al &hellip; <\/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":[203],"class_list":["post-1054","post","type-post","status-publish","format-standard","hentry","category-java","tag-java"],"_links":{"self":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/1054","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=1054"}],"version-history":[{"count":1,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/1054\/revisions"}],"predecessor-version":[{"id":1055,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/posts\/1054\/revisions\/1055"}],"wp:attachment":[{"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/media?parent=1054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/categories?post=1054"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/javigomez.org\/index.php\/wp-json\/wp\/v2\/tags?post=1054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}