by Dinesh Thakur

 

class InfiniteForLoop
{
            public static void main(String args[] )
            {
                        int i;
                        i=1;
BreakLabel:     {
                         for(;;)
                         {
                                    if(i>10)break BreakLabel;
                                    System.out.print(i +" ");
                                    i++;
                         }
                    }
            }
}