by Dinesh Thakur

 

import java.io.*;
	
	
class nEvenNumber
{
            public static void main(String args[] )
            throws IOException
            {
                        BufferedReader k=new BufferedReader(new InputStreamReader
                                    (System.in));
                        String h;
                        int i,n;
                        System.out.print("Enter limit : ");
                        h=k.readLine( );
                        n=Integer.parseInt(h);
                        for(i=0;i<=n;i+=2)
                        {
                                    System.out.print(i +" ");
                        }
            }
}

Print n Even Numbers