int main() { cout << "Hello! This is a program to solve an ordinary differential equation by the Runge-Kutta method in C++\n";
double x0, y0, x, h;
cout << "Enter the initial value of x0: "; cin >> x0; cout << "Enter the initial value of y0: "; cin >> y0; cout << "Enter the value of x where you want to calculate y: "; cin >> x; cout << "Enter the step size (h): "; cin >> h;
double ans = rungaKuttaMethod(x, x0, y0, h);
cout << "The value of y at x = " << x << " is " << ans << endl;