C Program using continue statement

 #include<stdio.h>


int main()
{
    int i,age;
    for(i=0; i<10; i++){
    printf("%d\nEnter you age\n",i);
    scanf("%d",&age);
    // if (age>10)
    // {
    // break;
    // }
    if (age>10)
    {
        continue;
    }
   
    printf("we have not come across any continue statement");
    printf("we have not come across any continue statement");
    printf("we have not come across any continue statement");
    printf("we have not come across any continue statement");
    printf("we have not come across any continue statement");
    printf("we have not come across any continue statement");
    printf("Aatifa is a good girl");
    }
    return 0;
}

OUTPUT:
0 Enter you age 23 1 Enter you age 34 2 Enter you age 63 3 Enter you age 8 we have not come across any continue statementwe have not come across any continue statementwe have not come across any continue statementwe have not come across any continue statementwe have not come across any continue statementwe have not come across any continue statementAatifa is a good girl4 Enter you age 6 we have not come across any continue statementwe have not come across any continue statementwe have not come across any continue statementwe have not come across any continue statementwe have not come across any continue statementwe have not come across any continue statementAatifa is a good girl5 Enter you age 56 6 Enter you age 3 we have not come across any continue statementwe have not come across any continue statementwe have not come across any continue statementwe have not come across any continue statementwe have not come across any continue statementwe have not come across any continue statementAatifa is a good girl7 Enter you age 0 we have not come across any continue statementwe have not come across any continue statementwe have not come across any continue statementwe have not come across any continue statementwe have not come across any continue statementwe have not come across any continue statementAatifa is a good girl8 Enter you age 78 9 Enter you age 5 we have not come across any continue statementwe have not come across any continue statementwe have not come across any continue statementwe have not come across any continue statementwe have not come across any continue statementwe have not come across any continue statementAatifa is a good girl PS C:\Users\hp\C Tutorials course>

Comments

Post a Comment

Popular posts from this blog

C program of WHILE Loop

NULL Pointer in C.

C Program using DO WHILE loop

C Program using SWITCH statement

New Animated Login or signup page made by HTML, CSS and JavaScript.

C Program to print multiplication table of any number.

C Language Travel Agency Manager Exercise.

STRUCTURE IN C PROGRAMMING.