Что не так,по условие иные числа
#include
#include
using namespace std;
int main() {
double a,c,d,f,t,b,Q;
cout<<"a=";
cin>> a;
cout<<"c=";
cin>> c;
d=(f*f)+a+b;
f=(30*a)+(22*b)+(c*c*c*c*c);
t=(a*a)+(f*f*f+d);
b=(a*a*a*a*a*a*a)+log10(a+1)+sin(a*a*a*a*a*a*a)+log10(a+1);
Q=f+(d*t);
cout<<"d="<< d <
cout<<"f="<< f <
cout<<"t="<< t <
cout<<"b="<< b <
cout<<"Q="<< Q <
return 0;
}
Answers & Comments
#include <iostream>
#include <cmath>
using namespace std;
int main() {
double a, c, d, f, t, b, Q;
cout << "a=";
cin >> a;
cout << "c=";
cin >> c;
f = (30 * a) + (22 * b) + pow(c, 5);
d = pow(f, 2) + a + b;
t = pow(a, 2) + pow(f, 3) + d;
b = pow(a, 7) + log10(a + 1) + sin(pow(a, 6)) + log10(a + 1);
Q = f + (d * t);
cout << "d=" << d << endl;
cout << "f=" << f << endl;
cout << "t=" << t << endl;
cout << "b=" << b << endl;
cout << "Q=" << Q << endl;
return 0;
}
пробуй так