I\'m a newbie. Wrote a code to print sum of number from 1 to 10. Here\'s what happened;
for(a = 1; a<=10; a++) sum += a; cout<
Because the code in curly braces is executed until the condition in for loop becomes false.