Computer Science, asked by lakshyasri85, 7 months ago

Write an infinite loop using while.

Answers

Answered by hariharan11122006
1

Explanation:

while loop represents the infinite condition as we provide the '1' value inside the loop condition. As we already know that non-zero integer represents the true condition, so this loop will run infinite times. We can also use the goto statement to define the infinite loop.

pls mark as brainliest

Answered by ʙᴇᴀᴜᴛʏᴀɴɢᴇʟ
2

Explanation:

while loop represents the infinite condition as we provide the '1' value inside the loop condition. As we already know that non-zero integer represents the true condition, so this loop will run infinite times. We can also use the goto statement to define the infinite loop.

...

  1. while loop
  2. while(1)
  3. {
  4. // body of the loop..

Similar questions