Saturday, January 7, 2012

Print the numbers of form 2^i.5^j in increasing order.


Print the numbers of form 2^i.5^j in increasing order. For eg:
1, 2, 4, 5, 8, 10, 16, 20


Output:
1 2 4 5 8 10 16 20 25 32 40 50 64 80 100 125 128 160 200 250 


Code:

1 comment: