diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-11-25 18:27:22 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-11-25 18:27:22 -0600 |
commit | 0b32ceadeace2e5650ecb5fe1daaebc571bb756d (patch) | |
tree | 652805d15a865eea7e2c1047ab90c2903ff200d2 /pruebas | |
parent | 4b78bc397a51456bd9d0bf08fbd6b1394b91c288 (diff) | |
download | javanol-0b32ceadeace2e5650ecb5fe1daaebc571bb756d.tar.gz javanol-0b32ceadeace2e5650ecb5fe1daaebc571bb756d.tar.bz2 javanol-0b32ceadeace2e5650ecb5fe1daaebc571bb756d.zip |
¡Expresiones if y while!
Diffstat (limited to 'pruebas')
-rw-r--r-- | pruebas/sintaxis2.es | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pruebas/sintaxis2.es b/pruebas/sintaxis2.es index d1c49f9..c8cbb59 100644 --- a/pruebas/sintaxis2.es +++ b/pruebas/sintaxis2.es @@ -5,9 +5,15 @@ caracter d; funcion entero a (entero a, cadena b) { b = ((40 - 2) + 10) * 2 + b(10); imprimir ("Hola"); + si (a >= 10) { + imprimir (b + 20); + } sino b; leer d; }; funcion caracter b (booleano a) { imprimir ("Adiós"); + mientras (a < 10) { + imprimir ("Hola"); + }; leer x; };
\ No newline at end of file |