68 231
Assignments Done
99%
Successfully Done
In November 2018

Answer to Question #10746 in C++ for Lloyd Lim

Question #10746
look at the following program and try to guess what it does without running it.

#include <iostream>
int main()
{
int m = -6;
int n = 106;
std::cout << "\n";
std::cout << "n / m = " << n / m "and m / n = " << m / n;
std::cout << "\n";
return 0 ;

}
Expert's answer
Obviously, this program is taking numbers -6 and 106 and then calculates and prints their ratios 106/(-6) and -6/106.

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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions