Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "pch.h"
- #include <iostream>
- #include <locale.h>
- using namespace std;
- int main()
- {
- setlocale(LC_ALL, "Rus");
- double x, h, H, y, i;
- i = 0;
- cin >> x >> H >> h;
- cout << "Значение x:" << x << endl << "Значение H :" << H << endl << "Значение h :" << h << endl;
- cout << "x" << "|" << "y" << endl;
- while (i < H / h)
- {
- i += 1;
- y = x + i * h;
- cout << x << "|" << y << endl;
- }
- cout << "Значение y:" << y << endl << "Значение i:" << i;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement