fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. double a1 = 93.11;
  5. double a2 = 33.72;
  6. double a3 = 30.69;
  7. double b1 = 0.00;
  8. double b2 = 0.00;
  9. double b3 = 0.00;
  10.  
  11. printf("%5.2f%% %5.2f%% %5.2f%%\n", a1, a2, a3); // wrong, how to modify?
  12. printf("%5.2f%% %5.2f%% %5.2f%%\n", b1, b2, b3);
  13.  
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
93.11% 33.72% 30.69%
 0.00%  0.00%  0.00%