aboutsummaryrefslogtreecommitdiff
path: root/pruebas/sintaxis2.es
diff options
context:
space:
mode:
Diffstat (limited to 'pruebas/sintaxis2.es')
-rw-r--r--pruebas/sintaxis2.es11
1 files changed, 9 insertions, 2 deletions
diff --git a/pruebas/sintaxis2.es b/pruebas/sintaxis2.es
index c89bee0..fdb9dd3 100644
--- a/pruebas/sintaxis2.es
+++ b/pruebas/sintaxis2.es
@@ -2,5 +2,12 @@ entero a = 10;
entero b = 20;
booleano c = verdadero;
caracter d;
-funcion entero a (entero a, cadena b);
-funcion caracter b (booleano a); \ No newline at end of file
+funcion entero a (entero a, cadena b) {
+ b = 40 + 2 * 10;
+ imprimir ("Hola");
+ leer d;
+};
+funcion caracter b (booleano a) {
+ imprimir ("Adiós");
+ leer x;
+}; \ No newline at end of file