Herramientas de usuario

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Próxima revisión
Revisión previa
profesor.cbl [2025/03/18 23:44] – creado peronprofesor.cbl [2026/04/21 16:08] (actual) – editor externo 127.0.0.1
Línea 1: Línea 1:
 <code cobol> <code cobol>
 identification division. identification division.
-program-id. teacher.+program-id. profesor.
 environment division. environment division.
 configuration section. configuration section.
Línea 9: Línea 9:
 begin section. begin section.
 begin-it. begin-it.
-     display " Hello from main!"+     display " Hola desde main!"
-     display "  Calling subroutine1!". +     display "  Llamando a subrutina1!". 
-     perform subroutine1+     perform subrutina1
-     display "               Back from subroutine1!". +     display "        Volviendo desde subrutina1!". 
-     display "  Calling subroutine2!". +     display "  Llamando a subrutina2!". 
-     perform subroutine2+     perform subrutina2
-     display "               Back from subroutine2!". +     display "        Volviendo desde subrutina2!". 
-     display "  That's allfolks!".+     display "  Eso es todoamigos!".
      stop run.      stop run.
-subroutine1 section.+subrutina1 section.
 sub1. sub1.
-     display "               Hello from subroutine1!". +     display "            Hola desde subrutina1!". 
-subroutine2 section.+subrutina2 section.
 sub2. sub2.
-     display "               Hello from subroutine2!".+     display "            Hola desde subrutina2!".
 </code> </code>

Este sitio web utiliza cookies para guardar datos esenciales de su actividad, como su autenticación. Al entrar acepta el uso de cookies.

Más información