//Ask a same No to input again & again by using Goto Loop

void main()
{
    int i=0,n,n2,n3;
    clrscr();
    loop:
        printf("Enter the first Number:");
        scanf("%d",&n);
        i=i+1;
        if (i<5)
            goto loop;
    i=0;
    loop1:
        printf("\n\tEnter the second Number:");
        scanf("%d",&n2);
        i=i+1;
        if(i<10)
            goto loop1;
    i=0;
    loop2:
        printf("\n\n\t\tEnter the Third Number:");
        scanf("%d",&n3);
        i=i+1;
        if(i<2)
            goto loop2;

    getch();
}

#vpsinghrajput

Author & Editor

Has laoreet percipitur ad. Vide interesset in mei, no his legimus verterem. Et nostrum imperdiet appellantur usu, mnesarchum referrentur id vim.

0 comments:

Post a Comment