Results

State what output, if any, results from each of the following statements:  (4)

a. for (i = 1; i <= 1;=”” i++)=””>

cout < “*”;=””>

cout <>

b. for (i = 2; i >= 1; i++)

 cout <>

 cout <>

c. for (i = 1; i <= 1;=””>

   cout <>

   cout < endl;=””>

d. for (i = 12; i >= 9; i–)

    cout <>

    cout < endl;=””>

e. for (i = 0; i <= 5;=””>

    cout <>

    cout < endl;=””>

f. for (i = 1; i <= 5;=”” i++)=””>

  

                cout <>

 i = i 1 1;

  

    cout <>

Posted in Uncategorized

Leave a Reply