Question #3888

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!!

Expert's answer

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.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS