While loop not acting as expected in Dev C++

前端 未结 0 1177
温柔的废话
温柔的废话 2021-02-19 07:38

I\'m trying to get a while loop to accept the condition of looping until the values 1 or 2 are entered using the code below

while((choice != 1) || (choice != 2))
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题