I want to use padding when i print stuff.
The normal way is
But I want the number 5 to be replaced by a variable, as i want the padding to vary based on that variable.Code:printf("%5s",string)
But I don't think I can just put the variable name where 5 is.
Is there a way of using variable padding length?