Printing Even Number Using Continue Statement in C Program



#include <stdio.h>

int main()
{
    int n,i;
    printf("\nEnter the limit : ");
    scanf("%d", &n);
    for(i=1; i<=n;i++)
    {
        if(i%2!=0)
        {
            continue;
        }
        printf("\n%d",i);
    }

    return 0;
}

Comments