“Prime or not” program

The are several problems with your program. The first one is that the loop starting with statement while (number1 == 5) is infinite because number1 is not changed within the loop. The second one is that you must always initialize variable a to zero within the loop. And it should be defined also within the … Read more