Главная » 2015 » Сентябрь » 29 » методичка 2 задача 23б
09:02
методичка 2 задача 23б

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

    system("pause");
    return 0;
}

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