exit for loop in c code example
Example: exit loop c
#include <stdio.h>
int main () {
for (int i = 1; i <= 100; i++)
{
if (i == 5)
{
//use break, same as c#
break;
}
}
return 0;
}
#include <stdio.h>
int main () {
for (int i = 1; i <= 100; i++)
{
if (i == 5)
{
//use break, same as c#
break;
}
}
return 0;
}