// Author: Evan McClellan // Modified: Feb 4, 2008 (Volker Crede) // February 01, 2007 (Computational Physics Lab) // This program finds the largest integer such that // (N+1) is the integer one larger than N. #include using namespace std; int main() { int N=1; while (++N > 0) { if (N+1 < 0) { cout << endl << N << endl; } } cout << endl << (N-2) << endl; }