In one of the assignments we have a code like fprintf(output, "%-21s%3d%12.1f\n", name, age, temperature);
These numbers -21, 3 and 12 are supposed to help us align or format the text on the lower row compared to the upper one (I guess this is considered a better option than trying to space out strings with spaces). I don't understand what -21 means or how I should be using these numbers to align the text the way I want. I think my 3 strings need to align under the following line: printf("Patient Name Age Bp Warning Level\n\n"
Please note: I have to use only this option to align the text.
%-21sor you are asking also info about%3dand%12.1f?printf("Patient Name Age Bp Warning Level\n\n""%-21s%3d%12.1f\n"changing numbers and adding spaces in order to meet that requirement?