X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 14 Jul 2011 01:12 AM by  anon
format the running result different in envi 4.8 and 4.7
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
14 Jul 2011 01:12 AM
    I use this pro file running in the IDL Workbench PRO Chapter04Table99 i = 1 WHILE i LT 10 DO BEGIN j = 1 WHILE j LE i DO BEGIN PRINT, j, '*', i, '=' ,i * j, FORMAT = '(4X,I1,1X,A1,1X,I1,1X,A1,1X,I2,$)' j = j +1 ENDWHILE PRINT;, FORMAT = '(/)' i = i + 1 ENDWHILE END the output in ENVI 4.7 is 1 * 1 = 1 1 * 2 = 2 2 * 2 = 4 1 * 3 = 3 2 * 3 = 6 3 * 3 = 9 1 * 4 = 4 2 * 4 = 8 3 * 4 = 12 4 * 4 = 16 1 * 5 = 5 2 * 5 = 10 3 * 5 = 15 4 * 5 = 20 5 * 5 = 25 while in ENVI 4.8 is 1 * 1 = 1 1 * 2 = 2 2 * 2 = 4 1 * 3 = 3 2 * 3 = 6 3 * 3 = 9 1 * 4 = 4 2 * 4 = 8 3 * 4 = 12 4 * 4 = 16 1 * 5 = 5 2 * 5 = 10 3 * 5 = 15 4 * 5 = 20 5 * 5 = 25 why this happened?
    You are not authorized to post a reply.