Question #3335

What is the output of the given expression; take the input values for the variables
A * ( B / C) – D % E

Expert's answer

#include <iostream>
using namespace std;

int main()
{
int A, B, C, D, E;
cout << "Input A, B, C, D and E:" << endl;
cin >> A >> B >> C >> D >> E;

int result = A * (B / C) - D % E;
cout << "The result is " << result << endl;

return 0;
}
LATEST TUTORIALS
APPROVED BY CLIENTS