Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

Archive / 8variant / 8LAB3

.CPP
Скачиваний:
15
Добавлен:
30.03.2015
Размер:
344 б
Скачать
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <iostream.h>
#include <math.h>
#include <string.h>
void main()
{
  clrscr();
  double x,a=1.8,b=-0.5,c=3.5;
  cin>>x;
  if(x<=2&&x>=0)
  {
    double y;
    if(x<=1.2)
     y=a/x+b*x*x-c;
    else
     y=(a+x*b)*pow(x+1,1/2);
     cout<<y;
  }
  getch();
}
Соседние файлы в папке 8variant