Tuesday, September 30, 2008

Quizlet

Do not compile this code. What is output by the program? Submit your answer in a comment to this blog.

int n=2;

for(int i=0; i<=5; i++)
{
    n = (n * 2) - n + i;
}  
cout << n;

.

No comments: