fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. printf("1234567890\n");
  5. printf("%4s\n", "a");
  6. printf("%-4s\n", "a");
  7. printf("%6.3f\n", 0.1234);
  8. printf("%6.3f\n", 0.1234);
  9. printf("%6.3f\n", -5.123);
  10. printf("%7.3f\n", -4.123);
  11. // your code goes here
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0.01s 5316KB
stdin
Standard input is empty
stdout
1234567890
   a
a   
 0.123
 0.123
-5.123
 -4.123