What is an Infinite Loop ? Write an Infinite Loop Statement.
Advertisements
प्रश्न
What is an infinite loop ? Write an infinite loop statement.
थोडक्यात उत्तर
Advertisements
उत्तर
An infinite loop can be created by skipping the condition. This provides infinite statements to be executed again and again.
An infinite loop statement :
int i;
for (i = 1; ; i++)
{
System.out.println(“This is an end loop”).
}
shaalaa.com
Introduction of Nested Loop
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
