fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6.  
  7. int nInput_1, nInput_2;
  8. float fDivide;
  9.  
  10. cin >> nInput_1 >> nInput_2;
  11.  
  12. fDivide = (float)nInput_1 / (float)nInput_2;
  13.  
  14. cout.precision(22);
  15. cout << (float)fDivide << endl;
  16.  
  17. return 0;
  18.  
  19.  
  20. }
Success #stdin #stdout 0s 15232KB
stdin
1 3
stdout
0.3333333432674407958984