Consider the execution of the following for loop. If the last value printed is 5, which of the following might have been used for increment?
This question was created from Week 3 https://www.coursehero.com/file/13559097/Week-3/
Consider the execution of the following for loop. If the last value printed is 5, which of the following might have been used for increment? for (int x = 1; x < 5; increment ) cout << x + 1 << endl; (Points : 3) ++x x++ x+=1 x=x+1 Any of the above would work.