identification division.
program-id. kw47.
* aus Kowalk - Korrekte Software
* p. 47
author. Jens.
date-written. 5.1.2009.
date-compiled.
data division.
working-storage section.
77 b pic 9(4).
linkage section.
77 n pic 9(4).
77 a pic 9(4).
procedure division using n returning a.
move 0 to a
move 1 to b
perform until a>n
add b to a
add 1 to b
end-perform
end-program kw47.
¤ Dauer der Verarbeitung: 0.7 Sekunden
¤
*© Formatika GbR, Deutschland