Answer the question
In order to leave comments, you need to log in
How can I make printf print a number of the same length regardless of its sign?
That is, I print %.5d and all numbers are the same length. But if this number is less than zero, then the whole system is shifted due to the minus. Whether it is possible to make that for example for positive it was displayed plus? Or something like that?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question