Computer Science, asked by akashmalick27, 8 days ago

write an example of an infinite loop by while loop java​

Answers

Answered by WORKSMOKY
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