/* Лабораторная работа 2 */ #include #include #include int main() { float a = -6.28, b = 6.28, x = a, y, h = 0.1; while (x <= b) { y = x*x; if (sin(x) > 0.2) y = x*x +1; if (sin(x) < 0.1) y = x*x - 1; printf("\ny(%.2f) = %.2f", x, y); x += h; } getch(); return 0; }