From 4b2fad150a292f882cee408d7f9746715225f7cb Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Fri, 25 Nov 2022 19:07:58 -0600 Subject: Se añade `retornar', `detener' y `continuar' 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 c8cbb59..09e5f1f 100644 --- a/pruebas/sintaxis2.es +++ b/pruebas/sintaxis2.es @@ -9,11 +9,17 @@ funcion entero a (entero a, cadena b) { imprimir (b + 20); } sino b; leer d; + retornar 10 + 20; }; funcion caracter b (booleano a) { imprimir ("Adiós"); mientras (a < 10) { imprimir ("Hola"); + si (a >= 10) { + continuar; + } sino detener; + a = a + 1; }; leer x; + retornar; }; \ No newline at end of file -- cgit v1.2.3