From 91f6878b24ac16ac71be18db1285dcc4fa45a45d Mon Sep 17 00:00:00 2001 From: "jp.av.dev" Date: Mon, 16 Nov 2020 01:57:38 -0300 Subject: [PATCH] +readme --- Apuntes_guia/basicos/README.md | 13 +++++++++++++ Apuntes_guia/basicos/WhileDoWhile.java | 22 ++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 Apuntes_guia/basicos/README.md create mode 100644 Apuntes_guia/basicos/WhileDoWhile.java diff --git a/Apuntes_guia/basicos/README.md b/Apuntes_guia/basicos/README.md new file mode 100644 index 0000000..c41c7a0 --- /dev/null +++ b/Apuntes_guia/basicos/README.md @@ -0,0 +1,13 @@ +## Apuntes útiles +*para correr en consola o consulta de sintaxis* +**Compilar :** `$ javac ./NombreArchivo.java` +**Ejecutar :** `$ java ./NombreArchivo.java` + +### [Ejemplos básicos]() +- [*Guia de ejercicios*]() +- [*Random-Switch-DoWhile-For*]() +- [*While-DoWhile*]() +- [*Try Catch*]() +- [*Case Try*]() +- [ej. Excepciones]() + diff --git a/Apuntes_guia/basicos/WhileDoWhile.java b/Apuntes_guia/basicos/WhileDoWhile.java new file mode 100644 index 0000000..0c4537e --- /dev/null +++ b/Apuntes_guia/basicos/WhileDoWhile.java @@ -0,0 +1,22 @@ +//--------------- jp.av.dev@gmail.com ---------------// +//----------------- While, Do While -----------------// +package apuntes.pkg; + +import java.util.Scanner; + +public class WhileDoWhile { + public static void main(String[] args) { + Scanner s= new Scanner(System.in); + int num=0; + while(num < 3 ){ + System.out.println("Hola"); + num++; + do{ + num = 0; + if (num%2==0) + {System.out.println(num); + num++;} + }while(num < 100); + } + } +}