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 (pow(sin(x),3) - 3 );
- }
- void RegCikl(double c, double d, double h) {
- double x, y;
- for (x = c; x <= d; x += h) {
- y = func(x);
- cout << x << y;
- }
- }
- int main()
- {
- double c,d,h;
- cin >> c >> d >> h;
- RegCikl(c,d,h);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement