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 ;

}
1
Expert's answer
2012-06-19T10:39:02-0400
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 the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS