Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- double func(double x) {
- return (exp(2x) - pow(x,3) );
- }
- void RegCikl(double a, double b, double h) {
- double x, y;
- for (x = a; x <= b; x += h) {
- y = func(x);
- cout << x << y << endl;
- }
- }
- int main()
- {
- double a,b,h;
- cin >> a >> b >> h;
- RegCikl(a,b,h);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement