// HelloFor2.cc #include using namespace std; int main() { int N = 10 ; int s ; int a = 3 , b = 8 , m = 7 , d = 4 ; cout << "HelloFor2 is running " << endl; for (int i=1; i<=N; i++) { cout << i << "th loop" << endl; // Print the loop number if ( i < a ) { cout << " (ib) is true " ; cout << " ("<< i << ">" << b << ")" << endl ; } else { s = i * i ; cout << " " << i << " squared is " << s << endl ; } if ( i == m ) { cout << " (i==m) is true " << endl ; cout << "! " << N-i << " numbers to go !" << endl ; } if ( i % d ) { cout << " (i%d) is true " ; } else { cout << " (i%d) is false " ; } cout << "("<