Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- int main() {
- setlocale (LC_ALL, "Russia");
- float x;
- for (x = -4; x <= 4; x += 0.5) {
- if (x == 1) {
- continue;
- }
- float y = (x * x - 2 * x + 2) / (x - 1);
- cout << " " << y;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement