Jump to content

Map range: Difference between revisions

m
→‎Version 4: changed a comment to reflect that the (old) REXX version is no longer shown (it has been updated).
m (→‎version 3: changed the wording in the REXX section header.)
m (→‎Version 4: changed a comment to reflect that the (old) REXX version is no longer shown (it has been updated).)
Line 1,981:
<lang rexx>/*REXX program maps a number from one range to another range. */
/* 31.10.2013 Walter Pachl */
/* 'translated' from an older version 1 without using Procedure */
do j=0 to 10
say right(j,3) ' maps to ' mapRange(0,10,-1,0,j)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.