From 819fdb201b87e764063a50cb729470da402c720f Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Sat, 26 Nov 2022 00:04:13 -0600 Subject: Se arregla literal de caracter y se añade screenshot al README MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pruebas/screenshot.es | 23 +++++++++++++++++++++++ screenshot.png | Bin 0 -> 62334 bytes 2 files changed, 23 insertions(+) create mode 100644 pruebas/screenshot.es create mode 100644 screenshot.png 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 Binary files /dev/null and b/screenshot.png differ -- cgit v1.2.3