Advertisement
filipparodriguezz

Untitled

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