fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. float pi;
  5. fscanf(stdin, "%f", &pi);
  6. printf("%1.5f", pi);
  7.  
  8. return 0;
  9. }
Success #stdin #stdout 0s 2296KB
stdin
3.14159
stdout
3.14159