#include #include #include int main() { float a = 0.2, b = 1, x = a, y, h = 0.1; while (x <= b) { if (cos(x) > 0.2) y = (x*x - 4)/x; if (cos(x) <= 0.2) y = (x*x + 4)/x; printf("\ny(%.2f) = %.2f", x, y); x += h; } getch(); return 0; }