0

PLEASE HELP C++

I need to calculate the function y=f(x) using switch. You’re given three X values that the program should prompt you to enter. The answer should be y1=... y2=... y3=... or default“404” function 1+sqrt(a+(fabs(x))) “by x=1” 2+(pow(a*x,2))+exp(x) “by x=5” x+(sqrt(1+b*log(pow(a,2)*x)) “by x=7”

2nd Oct 2020, 8:58 AM
Aidar Ziyadanov
Aidar Ziyadanov - avatar
6 Answers
0
oops a=6,72 b=4,85
2nd Oct 2020, 9:26 AM
Aidar Ziyadanov
Aidar Ziyadanov - avatar
0
thanks
2nd Oct 2020, 10:32 AM
Aidar Ziyadanov
Aidar Ziyadanov - avatar
0
but, how i can use several conditions in one expression?
2nd Oct 2020, 10:38 AM
Aidar Ziyadanov
Aidar Ziyadanov - avatar