Пишет ошибку в 15 строчке: else without a previous if #include
#include
using namespace std;
int main()
{
int x;
float A;
cout<<"Введите х="< cin>>x;
if (x >= M_PI);
{
A=0;
cout<<"y=0"< }
else
if(M_PI>x && x>=0)
{
A=sin(x);
cout<<"y=sin(x)"< }
else
if (0>x && x>=-2)
{
A=0;
cout<<"y="< }
else
if (x<=-2)
{
A = pow((x+2),2);
cout <<"y="< }

return 0;
}
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Copyright © 2024 SCHOLAR.TIPS - All rights reserved.