Posted by : Unknown Sunday, 5 July 2015

class Continue 
{
     public static void main(String args[]) 
     {
          for(int i=0; i<10; i++) 
          {
                System.out.print(i + " ");
                if (i%2 == 0) continue;
                System.out.println("");
          }
     }
}

Output:

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Welcome to My Blog

Translate

Popular Post

Total Pageviews

- Copyright © Learning Java Program - Powered by Blogger -