Регистрация
5 Сен 2013
Сообщения
75
Репутация
6
Спасибо
1
Монет
0
Помогите как это написать на c/c++
307012689_827716f08a65db6b7baf646de339773f_800.jpg

 
#include
#include
using namespace std;
int main()
{
double t, x, y, z;
cout.precision(15);
while (true)
{
cout > x >> y >> z)) {
cout
 
В программе вот так будет правильно: #include
#include
using namespace std;
int main()
{
double t, x, y, z;
cout.precision(15)
while (true)
{
cout > x >> y >> z;
t = pow(2.,-x)*sqrt(x+sqrt(sqrt(fabs(y)))
* exp((x-1./sin(z))/3.));
cout
 
#include
#include
using namespace std;
double input(const char* msg) {
cout > value;
cin.ignore(0x1000, '\n');
return value;
}
int main() {
auto x = input("x: ");
auto y = input("y: ");
auto z = input("z: ");
auto a = pow(2.0, -x);
auto b = pow(fabs(y), 0.25);
auto c = pow(exp((x - 1) / sin(z)), 1.0 / 3.0);
auto d = sqrt(x + b * c);
auto t = a * d;
cout.setf(ios::fixed);
cout.precision(15);
cout
 
#include
#include

using namespace std;

int main() {
double x, y, z, t;
cout > x;
cout > y;
cout > z;
t = pow(2, -x) * sqrt(x + pow(sqrt(fabs(y)), 4) * pow(exp((x - 1) / sin(z)), 3));
cout
 
Назад
Сверху