Anonymous user
Two sum: Difference between revisions
m
→version 2: used a better comment.
m (→version 2: added/changed comments and whitespace.) |
m (→version 2: used a better comment.) |
||
Line 2,093:
say /* [↓] look for sum of 2 numbers=target*/
do a=0 for # /*scan up to the last number in array. */
do b=a+1 to #-1;
sol= sol + 1 /*bump count of the number of solutions*/
say @solution
right(@.a, w*4)
end /*b*/ /*show the 2 indices and the summation.*/
end /*a*/
|