write an example of an infinite loop by while loop java
Answers
Answered by
0
Answer:
An infinite loop occurs when a condition always evaluates to true. Usually, this is an error. For example, you might have a loop that decrements until it reaches 0. public void sillyLoop( int i ) { while ( i != 0 ) { i-- ; } }
Similar questions