fork download
  1. #include <stdio.h>
  2.  
  3. int main (){
  4. int x;
  5. float y;
  6. double z;
  7.  
  8. scanf("%d %f %lf", &x, &y, &z);
  9. printf("%d %.3f %.4lf", x, y, z);
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0.01s 5292KB
stdin
1 1 1 
stdout
1 1.000 1.0000