break continue
The break statement "jumps out" of a loop.
The continue statement "jumps over" one iteration in the loop.
break continue
The break statement "jumps out" of a loop.
The continue statement "jumps over" one iteration in the loop.
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us