Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #include "pch.h"
  2. #include <iostream>
  3. #include <locale.h>
  4. using namespace std;
  5. int main()
  6. {
  7. setlocale(LC_ALL, "Rus");
  8. double x, h, H, y, i;
  9. i = 0;
  10. cin >> x >> H >> h;
  11. cout << "Значение x:" << x << endl << "Значение H :" << H << endl << "Значение h :" << h << endl;
  12. cout << "x" << "|" << "y" << endl;
  13. while (i < H / h)
  14. {
  15. i += 1;
  16. y = x + i * h;
  17. cout << x << "|" << y << endl;
  18. }
  19. cout << "Значение y:" << y << endl << "Значение i:" << i;
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement