KarmaAndCoding
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:
dumb phoenix
October 23, 2013 at 6:48 AM
very elegant way to do this!
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
very elegant way to do this!
ReplyDelete