fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. float xf; double xd; long double xl;
  6. xf = xd = xl = 3.14159265L;
  7. printf("%f %lf\n", xf, xf); // %f ou %lf para float/double
  8. printf("%f %lf\n", xd, xd);
  9. printf("%Lf\n", xl); // %Lf para long double
  10.  
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 4380KB
stdin
Standard input is empty
stdout
3.141593 3.141593
3.141593 3.141593
3.141593