Advertisement
Dprogrammed1

java ques 60

Mar 28th, 2019
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1.  class jump_statments
  2.     {
  3.         public static void main(String args[])
  4.         {        
  5.              int x = 2;
  6.              int y = 0;
  7.              for ( ; y < 10; ++y)
  8.              {
  9.                  if (y % x == 0)
  10.                      continue;  
  11.                  else if (y == 8)
  12.                       break;
  13.                  else
  14.                     System.out.print(y + " ");
  15.              }
  16.         }
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement