diff options
Diffstat (limited to 'pruebas')
-rw-r--r-- | pruebas/screenshot.es | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pruebas/screenshot.es b/pruebas/screenshot.es new file mode 100644 index 0000000..213817d --- /dev/null +++ b/pruebas/screenshot.es @@ -0,0 +1,23 @@ +entero a = 10; +entero b = 20; +booleano c = verdadero; +caracter d = 'a'; +entero i = 0; + +funcion vacio imprimir_n (entero n, cadena s) { + mientras (i < n) { + imprimir (s); + i = i + 1; + }; +}; + +funcion vacio principal () { + leer a; + imprimir_n (a, "¡Hola, Mundo!"); + si (a < b) { + imprimir ("a es menor que b"); + } sino { + imprimir ("a es menor o igual que b"); + }; + retornar ((40 + a) - b) * 2; +};
\ No newline at end of file |