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.
Comments
Leave a comment