0
How to get the output as (0100) and entering input as 100
6 odpowiedzi
+ 7
Do "%Nd" where N is the total length of the number you want to print (including the zeros)
For example:
printf("%03d", 6); --> 006
printf("%05d", 17); --> 00017
+ 2
In Which language can u elaborate more
https://www.sololearn.com/discuss/333866/?ref=app
+ 2
NotAPythonNinja yes that's right. But I think the OP wanted to know about padding zeros.
0
Sorry I didn't post the required language I required it in c