How can I get rid of “error: incompatible types: boolean cannot be converted to int”, while keeping most of the program?

后端 未结 0 1520
滥情空心
滥情空心 2020-12-15 13:19

Previously I had the while statement as true and swapped the if and else but was getting and infinite loop. I have no idea on how to fix this import java.util.Scanner;

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