give an example of infinity loop using for loop
Answers
Answered by
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
Math,
2 months ago
Math,
2 months ago
Hindi,
5 months ago
Science,
10 months ago
Computer Science,
10 months ago