Главная » 2017 » Октябрь » 2 » 23 а)
08:41
23 а)

#include <iostream>
#include <math.h>
using namespace std;
int main()
{
    setlocale(LC_ALL,"rus_rus.1251");
    double x,y;
    cout<<"Введите x "<<endl; 
    cin>>x;
    if (pow(x,2)-x<=1) 
        y=pow(x,3)-3*x+8;
    else
        y=1/(pow(x,3)-3*x+8);
    cout<<"y="<<y<<endl;
    system("pause");
    return 0;
}

Просмотров: 365 | Добавил: denjes | Рейтинг: 0.0/0
Всего комментариев: 0
avatar