What is one potential problem with the following loop? System. out. print ("Enter integers. Enter - 1 to exit."); System. out. println (" Count of integers entered will be returned."); int n=0; int c=0; while (n! = - 1) { n = scan. nextInt (); c++; } System. out. println (c);
+2
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What is one potential problem with the following loop? System. out. print ("Enter integers. Enter - 1 to exit."); System. out. println (" ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » What is one potential problem with the following loop? System. out. print ("Enter integers. Enter - 1 to exit."); System. out. println (" Count of integers entered will be returned."); int n=0; int c=0; while (n! = - 1) { n = scan.