Thread Message #49300
31 messages · –L #include <iostream> #include <cmath> #include <iomanip> using namespace std; int main() { double a, b, c, d, x; cin >> a >> b >> c >> d >> x; double y = (a * x * x + b * x + c) / (x * a * a * a + a * a + pow(a, (b - c))) + cos(fabs((a * x + b) / (c * x + d +pow(2,c)); cout << fixed << setprecision(2) << y << endl; } Assalomu alekum Mana c++ da😊ㅤ U import math a = float(input("Enter value for a: ")) b = float(input("Enter value for b: ")) c = float(input("Enter value for c: ")) d = float(input("Enter value for d: ")) x = float(input("Enter value for x: ")) y = (a * x * x + b * x + c) / (x * a * a * a + a * a + a * (b - c)) + math.cos(abs((a * x + b) / (c * x + d + 2))) print(f"{y:.2f}")ㅤ L U L L S L • S
•