diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-11-15 08:00:24 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-11-15 08:00:24 -0600 |
commit | a3097d32c66cbdff04de14481923c7464b0a8a29 (patch) | |
tree | 4833a3bfdf4b41df13baaa051337c29721782901 /pruebas/planteamiento.es | |
parent | d6d133d55eaa32ed3457e00f6d9baa4e267dad38 (diff) | |
download | javanol-a3097d32c66cbdff04de14481923c7464b0a8a29.tar.gz javanol-a3097d32c66cbdff04de14481923c7464b0a8a29.tar.bz2 javanol-a3097d32c66cbdff04de14481923c7464b0a8a29.zip |
Se añaden casos de prueba
Diffstat (limited to 'pruebas/planteamiento.es')
-rw-r--r-- | pruebas/planteamiento.es | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pruebas/planteamiento.es b/pruebas/planteamiento.es new file mode 100644 index 0000000..b378da8 --- /dev/null +++ b/pruebas/planteamiento.es @@ -0,0 +1,16 @@ +entero a = 10; +entero b = 20; +booleano c = verdadero; + +vacio imprimir_n (entero n, cadena s) { + entero i = 0; + porcada (i = 0; i < b; i++) { + imprimir s; + } +} + +si (a == b) { + imprimir "Son iguales"; +} sino { + imprimir_n (b, "Son diferentes"); +} |