Untitled
unknown
plain_text
10 months ago
416 B
2
Indexable
Never
#include <windows.h> #include <cstdlib> #include <MATH.h> #include <conio.h> #include <iostream> #include <locale.h> using namespace std; int main(){ setlocale(LC_ALL, "rus"); float x, y; cout<<"Введите x "; cin>>х; if (x>=-3 && x<=-2) y=-X-2; else if (x>=-2 && x<=-1) y=sqrt(1-pow(x+1,2)); else if (x>=-1 && x<=1) y=1; else if (x>=1 && x<=2) y=3-2*x; else if (x>=2 && x<=5) y=-1; "<<у; cout<<"Y= getch(); }