Winged Edge by teebee

program-id.w.data division.working-storage section.
1 m pic 9(9).
1 n pic 9(9).
1 s pic x(9).
procedure division.a.accept s
unstring s delimited" "into m n
compute n=(2+m+n*n/m)/4
display n(9- function log10(n):)if n<>1686 go a.

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page