Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- double ceilXOnY(double x, double y) {
- return (x + y - 1) / y;
- }
- int main() {
- double x, y;
- cin >> x >> y;
- cout << ceilXOnY(x, y) << endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment