| Issue 2: | Wrong output when first input > second input (i > j) | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. If the segment where 'i' is compared with 'j' is removed What is the expected output? What do you see instead? Wrong output (0) //Please use labels and text to provide additional information.
Jun 9, 2009
(No comment was entered for this change.)
Status:
Fixed
|
Issue solved by: if (j <= i) { ip = j; jp = i; } and using ip and jp, instead of i and j.