posted 9 years ago
Looking at the second value first (because it's easier) what do you have to do to change 1, 2, 3 ,4 ,5 ,6 to 10, 20, 30 ,40 ,50 ,60. If you are thinking multiply by 10 then you are right. So you could simply change your print statement to
Now using the same logic what do you have to do to the first number to change 1, 2, 3 ,4 ,5 ,6 to 1, 11, 21, 31 ,41 ,51?