#include <iostream>
using namespace std;
int main() {
int a, b, c, d, x;
cout << "\nВведите значения перемнных ";
cin >> a>>b>>c>>d;
if (!(a*d == 0) )
{
x = (a*d + c * b) / (a*d);
} else
{
cout << "\nЗначения не входят в ОДЗ ";
}
cout << x;
return 0;
}
#include <iostream>
#include <cmath>
using namespace std;
int main() {
int x,y,r;
cout << "\nВведите значения переменных ";
cin >> x>>y;
if (x > -1) && (cos(12*y - 4))
{
r = pow((1 + sin(sqrt(x + 1))),2) / cos(12 * y - 4);
} else
{
cout << "\nЗначения не входят в ОДЗ";
}
cout << r;
return 0;
}