Computer Science, asked by jaiswalraju787, 2 months ago

give an example of infinity loop using for loop​

Answers

Answered by mahek77777
1

Examples of intentional infinite loops

1 #include <stdio.h> 2 3 int main() 4 { 5 for (;;) // or equivalently, while (1) 6 { 7 printf("Infinite Loop\n"); 8 } 9 return 0; 10 } ...

10 PRINT "INFINITE LOOP" 20 GOTO 10. ...

:A echo Infinite Loop goto :A. ...

while (true) System. ...

for ((;;)); do echo "Infinite Loop" done. ...

loop { println!("

Similar questions