0
Can a continue be used in an if in c?
To create a loop using if
2 Antworten
+ 2
"continue" has nothing to do with the if statement but if the statement is in a loop then you can write "continue" or "break" like this:
for(;I<n;i++)
{
if (I % 2 == 0) continue;
}
0
Yes it is possible
for ( int num = 1; num <= 10; num++ )
{
if ( num == 5 )
continue;
printf( "%d ", num );
}