We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
can't we do this by counting of digits in a no. and then use if else that if dig is less than 3 we add 0 and else we simply print the string and no.
i m doing this but it is showing error . Can you plz tell me the error in my logic
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Output Formatting
You are viewing a single comment's thread. Return to all comments →
can't we do this by counting of digits in a no. and then use if else that if dig is less than 3 we add 0 and else we simply print the string and no. i m doing this but it is showing error . Can you plz tell me the error in my logic