#17_Goto Statements in c

 # include <stdio.h>


int main()
{
    int num;
    
    for (int i = 0i < 8i++)
    {
        printf("%d\n"i);
        for (int j = 0j < 8j++)
        {
            printf("%d Enter the number . Enter 0 to exit"j);
            scanf("%d", &num);
            if (num==0)
            {
                goto end;
            }
            
        }
        
    }
    end
    return 0;
}

Comments

Popular posts from this blog

#64_Funtions for File I/O in C

#51_Ex_Game

#24_Stack_using_an_array