Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cmath>
- #include <iostream>
- using namespace std;
- double func(double x,double y){
- return (sqrt(sqrt(y))/(3*x));
- }
- void VlozhCikl(double a, double b, double hx, double c, double d, double hy) {
- double x, y, z;
- for (x = a; x <= b; x += hx) {
- for (y = c; y <= d; y += hy) {
- z = func(x, y);
- cout << x << " " << y << " "<< z << endl;
- }
- }
- }
- int main()
- {
- double a,b,c,d,hx,hy;
- cin >> a >> b >> hx >> c >> d >> hy;
- VlozhCikl(a,b,hx,c,d,hy);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement