C++ <-> Pascal | Break statement
C++ Used keywords: break
break
Description
break ;
Note: Usable in the following locations:
loop with condition at the end loop with condition on the beginning
loop with condition at the end loop with condition on the beginning
Examples
C++
Even one example in what situations we can use the operation break statement:i=10;
do --i; while ( i > 0);
do {
i++;
if (i==5)
break;
} while ( i <10);
.
Pascal Used keywords: break
break
Description
break ;
Note: Usable in the following locations:
loop with condition at the end loop with condition on the beginning
loop with condition at the end loop with condition on the beginning
Examples
Pascal
Even one example in what situations we can use the operation break statement:i:=10;
repeat dec(i) until not i > 0;
repeat
inc(i);
if i=5 then
break;
until not i <10;
Break statement in another programming language:
Differences to:
Share