• Помогите вычислить функции по информатике фото прикреплю

    question img

Ответы 1

  • с++#include<iostream>#include<cmath>int y(int x){  if(x<-2){    return (abs(x)+2);  }else if(x >= -2 && x<= 2){    return 1;  }else{    return (x+1);  }}using namespace std;int main(){  int x;  cin>>x;  cout<<y(x)<<endl;  return 0;}ПаскальProgram pr;uses crt;var x :integer;fubction y(x: integer) int a beginif x<-2 thena:= abs(x)+2;else if (x>=-2) and (x<=2) thena:= 1;else a:= x+1;end;beginreadln(x);whiteln(y(x));end;
  • Добавить свой ответ

Еще вопросы

Войти через Google

или

Забыли пароль?

У меня нет аккаунта, я хочу Зарегистрироваться

How much to ban the user?
1 hour 1 day 100 years