Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
15
Task/Digital-root/PL-I/digital-root-2.pli
Normal file
15
Task/Digital-root/PL-I/digital-root-2.pli
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
digital: procedure options (main); /* 29 April 2014 */
|
||||
declare 1 pict union,
|
||||
2 x picture '9999999999999',
|
||||
2 d(13) picture '9';
|
||||
declare ap fixed, n fixed (15);
|
||||
|
||||
do n = 5, 627615, 39390, 588225, 393900588225, 99999999999;
|
||||
x = n;
|
||||
do ap = 1 by 1 until (x < 10);
|
||||
x = sum(d);
|
||||
end;
|
||||
put skip data (n, x, ap);
|
||||
end;
|
||||
|
||||
end digital;
|
||||
Loading…
Add table
Add a link
Reference in a new issue