I need to generate ten different number (from 1 to 99) , and If a number is below 10, I must add a zero right before it for consistency reasons.
I used a for loop for the different numbers but I don't know how to implement the zero before the numbers below 10. Normally i would use an if statement but I can't use it. Can anyone please help me?
Answers
Answered by
0
Answer:
it's easy , write like this
01
02
03
04
05
06
07
08
09
010 it converts the no. into 2 digit no. as asked in the question.
Similar questions