C++ сделать программу
#include #include using namespace std; int main() { float x,y; cout<<"x = "; cin>>x; y=x*x+4*x+5; if (x>2) y=1/y; cout<<"y = "<<y<<endl;<br> system("pause"); return 0; }
#include 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;}
#include using namespace std; int main(){ float x,res; cin>>x; res=x*x+4*x+5; if(x<=2){<br> cout<<res<<endl;<br> } else cout<<1/res<<endl;<br> return 0; }