Автор: Sasha_Bezuglov (31.10.2016 в 16:54)
#include <iostream>
#include <math.h>
#include <conio.h>
using namespace std;
int main(){
int x,y;
cin>>x;
if(x>-3.14&&x<3.14/4)y=-cos(pow,2)*(x-3.14);
if(x=>3.14/4&&x<=1)y=sqrt(abs(x+1));
if(x>1)y=1/x-1;
cout<<"y="<<y;
getch();
return(0);
}