From 0b32ceadeace2e5650ecb5fe1daaebc571bb756d Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Fri, 25 Nov 2022 18:27:22 -0600 Subject: ¡Expresiones if y while! MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pruebas/sintaxis2.es | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pruebas') 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 -- cgit v1.2.3