Break and Continue Statement in C

The continue statement in C programming works somewhat like the break statement. Instead of forcing termination, it forces the next iteration of the loop to take place, skipping any code in between.

Source Code

//Break & Continue
int main()
    int i,n,num,sum=0;
    printf("\nEnter The Limit : ");
    for(i=1; i<=n; i++)
        printf("\nEnter The Number : ");
        scanf("%d",&num); //1 2 3 0 5
    printf("\nTotal : %d",sum);
    return 0;
To download raw file Click Here

List of Programs

Sample Programs

Switch Case in C

Conditional Operators in C

Goto Statement in C

While Loop Example Programs

Looping Statements in C

For Loop Example Programs

Array Examples in C

One Dimensional Array

Two Dimensional Array in C

String Example Programs in C

Functions Example Programs in C

Learn All in Tamil © Designed & Developed By Tutor Joes