// File: iotest2.cpp // Simple I/O demonstration using << and >>. #include using namespace std ; int main() { cout << "Enter 2 numbers and I will add them" << endl ; while (1) { int n, m ; cout << "Enter two numbers or two zeroes to quit: " ; cin >> n >> m ; if ( (n == 0) && (m == 0) ) break ; cout << n << " + " << m << " = " << n + m << endl ; } cout << endl << "Good-bye!" << endl ; }