[Solved] How to go to initial stage of Program without using “goto” and using “do while” loop? [closed]


GOTO statements are useful ?

Yes. But not for this use case.

how I can go to initial stage of program again when user press Y

There’s a control flow structure for going back and repeating. It is called a loop. An example:

do {
    // do some stuff

    cin>>q;
} while(q=='Y');

2

solved How to go to initial stage of Program without using “goto” and using “do while” loop? [closed]