aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-11-26 00:04:13 -0600
committerIván Ávalos <avalos@disroot.org>2022-11-26 00:04:13 -0600
commit819fdb201b87e764063a50cb729470da402c720f (patch)
treeecb9a2f0be26581d4198a15fef963c6262a69f56
parentd01b073ccb1dd4c2a2306f5b53679edc8e1cd138 (diff)
downloadjavanol-819fdb201b87e764063a50cb729470da402c720f.tar.gz
javanol-819fdb201b87e764063a50cb729470da402c720f.tar.bz2
javanol-819fdb201b87e764063a50cb729470da402c720f.zip
Se arregla literal de caracter y se añade screenshot al README
-rw-r--r--pruebas/screenshot.es23
-rw-r--r--screenshot.pngbin0 -> 62334 bytes
2 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
diff --git a/screenshot.png b/screenshot.png
new file mode 100644
index 0000000..598b6fe
--- /dev/null
+++ b/screenshot.png
Binary files differ