#include
#include
using namespace std;
int main() {
double x, P, pi = 4 * atan(1.0);
cin >> x;
P = sqrt(abs((sin(x-pi/12)+log(5*abs(x)))/(exp(pow(x,4))+atan(2*x))));
cout << P << endl;</p>
return 0;
}
Ввод: 1.519
Вывод: 0.120121
#include
#include
using namespace std;
int main() {
double F, g, h, pi=4*atan(1.0);
cin >> g >> h;
F = (h!=0) && (abs(g/h)!=pi/2) ? tan(g/h) : cos(g);
cout << F << endl;</p>
return 0;
}
Ввод:
-2.1
1.519
Вывод: -5.24753
#include
using namespace std;
int main() {
int K, f(0);
cin >> K;
while (K!=0) {
if (K % 10 == 5) {
cout << "Входит" << endl;</p>
f=1;
break;
}
K /= 10;
}
if (f == 0)
cout << "Не входит" << endl;</p>
return 0;
}
Ввод: 351
Вывод: Входит