Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class EvenNum
- {
- public static void main(String[] args)
- {
- for (int x=1; x<=20;x++)
- {
- System.out.println();
- System.out.print(x);
- if (x%2==0)
- System.out.print(" here");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement