C++ сделать программу

Приложения:

Ответы

Ответ дал: eugene7870
0
#include <iostream>using namespace std;int main(){ float x,res; cin>>x; res=x*x+4*x+5; if(x<=2){ cout<<res<<endl; } else cout<<1/res<<endl; return 0;}
Ответ дал: eugene7870
0
#include <iostream>
using namespace std;
int main(){
float x,res;
cin>>x;
res=x*x+4*x+5;
if(x<=2){
cout<<res<<endl;
}
else cout<<1/res<<endl;
return 0;
}
Вас заинтересует