#include <iostream> #include <cmath> using namespace std; int main () { int a, b, c, d; cout << "a = "; cin >> a; cout << "b = "; cin >> b; cout << "c = "; cin >> c; cout << "d = "; cin >> d; float result; result = a + b * sqrt(c + d); cout << result; }
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments