Aligning Output Values in C
问题 So I'm working on a program which needs to format output. The output is supposed to be aligned, and it does do so with small numbers: But then when I give big numbers, it no longer works: My code is really but here's the part that prints the main output: /* The following code prints out the data */ printf("\n\nStatistics: \n\n"); printf("Descrip\t\tNumber:\t\tTotal:\t\tAverage:\n\n"); printf("Normal\t\t%d\t\t%d\t\t%d\n\n",normal_counter,normal_total,normal_average); printf("Short\t\t%d\t\t%d