Computers and 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. nextint(); c++; } system. out. println(c);

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, bombbomb2157
Eva has many contacts on the professional networking site she uses which contacts are considered second degree
Answers: 3
image
Computers and Technology, 22.06.2019 15:30, mariap3504
Whats are the different parts of no verbal comunication, especially body language?
Answers: 3
image
Computers and Technology, 22.06.2019 17:30, jonquil201
Where would you click to edit the chart data?
Answers: 1
image
Computers and Technology, 23.06.2019 21:40, gaby06
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
Do you know the correct answer?
What is one potential problem with the following loop? system. out. print("enter integers. enter -1...

Questions in other subjects: