fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. float n;
  7. cin>>n;
  8. char buffer[100];
  9. sprintf(buffer, "%f",n); // use %d for integer
  10. printf(buffer);
  11. return 0;
  12. }
Success #stdin #stdout 0s 3276KB
stdin
13.234
stdout
13.234000