Answers for "while continue"

2

break continue

The break statement "jumps out" of a loop.
The continue statement "jumps over" one iteration in the loop.
Posted by: Guest on December-23-2020
0

while continue

#include <iostream>
using namespace std;

int main ( )
{
int i;
for (i=1;i<=10;i++)
{
if(i==5)
{
break;
}
cout<<i<<"\n";
}
}
also check full <a href="https://www.codeexampler.com/cpp-break">c++ break Statement</a> on codeExampler for Free
Posted by: Guest on September-13-2021

Browse Popular Code Answers by Language