Advertisement
Guest User

Untitled

a guest
Dec 10th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1. public class EvenNum
  2. {
  3.     public static void main(String[] args)
  4.     {
  5.         for (int x=1; x<=20;x++)
  6.         {
  7.             System.out.println();
  8.             System.out.print(x);
  9.             if (x%2==0)
  10.                 System.out.print(" here");
  11.  
  12.         }
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement