Why does num = 100?

The variable num gets assigned a value in the for loop. The range specified is from 0-100, so at the end of the loop the value of num will be 100.

Leave a Comment