fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. string doit(){
  5.  
  6. cout<<setprecision(15)<<fixed;
  7.  
  8. double val = 4444/23;
  9.  
  10. char ans[100];
  11. sprintf(ans,"%.15f",val);
  12.  
  13. return ans;
  14. }
  15.  
  16. int main() {
  17.  
  18. string ans = doit();
  19. cout<<ans;
  20. return 0;
  21. }
Success #stdin #stdout 0s 4376KB
stdin
Standard input is empty
stdout
193.000000000000000