Составить алгоритм вычисления функции y={2x при x>0. X^2 при x<=0
#include
using namespace std;
int main(){
int x;
cin>>x;
if(x>0)
cout<<2*x;
else
cout<
} язык с++.рад помочь.
Оцени ответ
Вход
Регистрация
Задать вопрос
#include
using namespace std;
int main(){
int x;
cin>>x;
if(x>0)
cout<<2*x;
else
cout<
} язык с++.рад помочь.