Answer to Question #3335 in C++ for mukunda

Question #3335
What is the output of the given expression; take the input values for the variables
A * ( B / C) – D % E
1
Expert's answer
2011-07-15T14:21:05-0400
#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;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS