Hey guys,
I want to know if there is any keyword that can be used to exit an iteration, but not the entire loop.. for example if i want to print the numbers from 1 to 10, but exclude 6:
thanks!
I want to know if there is any keyword that can be used to exit an iteration, but not the entire loop.. for example if i want to print the numbers from 1 to 10, but exclude 6:
for(int i=1; i<=10; i++){
if(i == 6)
//what keyword could be used here to go to the next iteration?
cout<< i << ", ";
thanks!