C++ continue Statement
C++ continue Statement
It is Sometimes necessary to skip a certain test condition within a loop. In such case, continue; statement is used in C++ programming.
Syntax of continue:
In practice, continue; statement is almost always used inside a conditional statement.
Working of continue Statement :
Example : C++ continue
C++ program to display integer from 1 to 10 except 6 and 9.
Output :
In above program, when i is 6 or 9, execution of statement cout << i << "\t"; is skipped inside the loop using continue; statement.
0 comments:
Post a Comment