fork(2) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. printf("Teste 1: '%3.2f' - A\n", 12.0809);
  5. printf("Teste 2: '%8.2f' - B\n", 12.0809);
  6. printf("Teste 3: '%08.2f' - C\n", 12.0809);
  7. return 0;
  8. }
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
Teste 1: '12.08' - A
Teste 2: '   12.08' - B
Teste 3: '00012.08' - C