For percentage in form "x.%x", the first x <= 3 bits, the second x == 2 bits
a1 = 93.11;
a2 = 33.72;
a3 = 30.69;
b1 = 0.00;
b2 = 0.00;
b3 = 0.00;
printf("%3.2f%% %3.2f%% %3.2f%%\n", a1, a2, a3); // wrong, how to modify?
printf("%3.2f%% %3.2f%% %3.2f%%\n", b1, b2, b3);
Output:
93.11% 33.72% 30.69%
0.00% 0.00% 0.00%
But the output is not right. How to align to make output below: