#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double x, y;
cin >> x >> y;
cout << sqrt(2 * x) + pow(y, 2) - 5 * sqrt(2 * x);
return 0;
}
Show life that you have a thousand reasons to smile
© Copyright 2024 DOKU.TIPS - All rights reserved.
Salut!
Ai programul in C++ mai jos
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double x, y;
cin >> x >> y;
cout << sqrt(2 * x) + pow(y, 2) - 5 * sqrt(2 * x);
return 0;
}