aboutsummaryrefslogtreecommitdiff
path: root/pruebas
diff options
context:
space:
mode:
Diffstat (limited to 'pruebas')
-rw-r--r--pruebas/sintaxis2.es6
1 files changed, 6 insertions, 0 deletions
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