fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. float h,dx;
  6. std::cin >> h >> dx;
  7. int n;
  8. n=(h/dx)+1;
  9. std::cout << n ;
  10. }
Success #stdin #stdout 0s 3476KB
stdin
0.04
0.001
stdout
40