NoticeNumbers

Code

import java.util.Scanner;

public class NoticeNumbers
{
    public static void main( String[] args )
    {
        Scanner keyboard = new Scanner(System.in);

        
        for ( int n = 1 ; n <= 20 ; n = n+1 )
        {
            if ( n % 2 == 0 )
            {
                System.out.println( n + " < " );
            }
            else
            {
                System.out.println( n );
            }
        }
    }
}

NoticeNumbers

Assignment 84