LASTDIGIT2 by *yuko*

program-id.y.data division.working-storage section.
1 n pic 9.
procedure division.accept n from time
if n<3 display"6
5
3
3
4"else if n<6 display"5
9
2
2
5
9
5
9
2
2
5
3
7
4
7
7
3
5
9
2
2
5
3
7
4
7
7
3
5
9
2
2
5
9"else display"5
3
7
4
7
7
3
5
9
2
5
3
7
4
7
7
3
5
9
2".

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

download

return to the top page