Chapter 5 Quiz Starting Out With C++ 017

Can you declare and initialize in a variable that will be used in the test expression?

for (int i=0; i<100; i++)
{
   //display the square of the numbers from 0 to 99
   cout << i*i << "\n";
}

a. true
b. false

1 comment: