Abundant, deficient and perfect number classifications: Difference between revisions
Content added Content deleted
(→{{header|REXX}}: added the REXX language. -- ~~~~) |
m (→{{header|REXX}}: simplified some variable names.) |
||
Line 531: | Line 531: | ||
high=word(high low 20000,1); low=word(low 1,1) /*get the LOW and HIGH. */ |
high=word(high low 20000,1); low=word(low 1,1) /*get the LOW and HIGH. */ |
||
say center('integers from ' low " to " high, 45, "═") |
say center('integers from ' low " to " high, 45, "═") |
||
a=0; d=0; p=0 /*set all types of sums to bupkis*/ |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
exit /*stick a fork in it, we're done.*/ |
exit /*stick a fork in it, we're done.*/ |
||
/*──────────────────────────────────SIGMA subroutine────────────────────*/ |
/*──────────────────────────────────SIGMA subroutine────────────────────*/ |