March 21, 2023

Latest Software News and Hacks

While loop exit problem

int choose;

scanf("%d", &choose);

while((choose != 0) || (choose != 1)){

printf("Try againn");

scanf("%d", &choose);


Not able to come out of while loop even after pressing 1 or 0

submitted by /u/knightbish0p
[link] [comments]

Go to Source of this post
Author Of this post: /u/knightbish0p
Title Of post: While loop exit problem
Author Link: {authorlink}