#16_Break Statements in C

 # include <stdio.h>


int main()
{
    int i, age;
    for ( i = 0; i < 10; i++)
    {
        printf("%d\n Enter yuor age: ",i);
        scanf("%d",&age);
        if (age>10)
        {
            break;
        }
        
    }
        
    return 0;
}

Comments

Popular posts from this blog

#19_(2)Functions in C

Ch7_32_MethodOverloading

#72_Function Pointers in C