diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-11-26 00:04:13 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-11-26 00:04:13 -0600 |
commit | 819fdb201b87e764063a50cb729470da402c720f (patch) | |
tree | ecb9a2f0be26581d4198a15fef963c6262a69f56 /pruebas | |
parent | d01b073ccb1dd4c2a2306f5b53679edc8e1cd138 (diff) | |
download | javanol-819fdb201b87e764063a50cb729470da402c720f.tar.gz javanol-819fdb201b87e764063a50cb729470da402c720f.tar.bz2 javanol-819fdb201b87e764063a50cb729470da402c720f.zip |
Se arregla literal de caracter y se añade screenshot al README
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 |