how do i stop the generator from generating numbers when it hits an exact number?

后端 未结 0 1162
春和景丽
春和景丽 2021-01-13 15:43

i want to ask how do i make that the generator would break when it generates a number that is even using cycles and arrays. I tried to do it using if (i%2) {break} , but it

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