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 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