Ответы
Ответ дал:
1
#include <math.h>
#include <conio.h>
using nemespace std;
int main()
{
float x,y;
cout<<"Введите Х\n";
cin>>x;
if(x<0){y=0;}
else
if(x>=0&&x<=1){y=x*x;}
else
if(x>1){y=sqrt(x*x-1);}
cout<<"Y = "<<y<<endl;
}
#include <conio.h>
using nemespace std;
int main()
{
float x,y;
cout<<"Введите Х\n";
cin>>x;
if(x<0){y=0;}
else
if(x>=0&&x<=1){y=x*x;}
else
if(x>1){y=sqrt(x*x-1);}
cout<<"Y = "<<y<<endl;
}
Вас заинтересует
2 года назад
2 года назад
2 года назад
2 года назад
7 лет назад
7 лет назад
9 лет назад