fork(1) download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. float x1 = 0.1;// x1 *10 = 1 ture
  8. float x2 = 0.7;//x2 *10 = 7 false answer give 0.6
  9. float x3 = 0.8;//x3 *10 = 8 true
  10. float x4 = 0.9;// x4 * 10 = 9 false ops! the answer is 8
  11. int f = x4 * 10 ;
  12. cout<<f ;
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
9