I retrived some data from db which is of length say 3(value=123) so in this case i need to prefix it with 0 (after value = 0123) and if it is only 12 we should prefix it with 00 that is (after value =0012) and same for one. I need the most efficient code!!
Note: no switch case and no indivisual looping allowed!!
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.