I just asked a same question, but the question is closed, maybe I broke the rules...or mess.
anyway i know about loop exit like break, while(bool), return, n=1, n=0 while(n), I want another method other than the above one.
i solved this problem with while(mode!=2) thanks for all, to answer my immature question :) i promise hard study by foundation your feedback!
question is closed.
here's my code structure :) ↓
        
#include<stdio.h>
#include<stdlib.h>
#include<windows.h>
int main() {
    
    int  mode=1;
    while (mode != 2)
    {
        printf("\ninput: "); scanf("%d", &mode);
        switch (mode) 
        {
        case 1: printf("\none"); Sleep(1500); break;
        case 2:
            printf("\nsomething");
            Sleep(1500);
            break;
        default: printf("\nStackOverFlow");  break;
        }
    }
    return 0;
}
 
    