fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a = 1;
  6. float b = 123456.789;
  7. double c = 123456.789;
  8. printf("a = %d\n",a);
  9. printf("b = %f\n",b);
  10. printf("c = %.1f\n",c);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 5324KB
stdin
Standard input is empty
stdout
a = 1
b = 123456.789062
c = 123456.8