Java Program to Find Even Number

Here is a simple program to find even number…

class even
{
    public static void main(int range)
    {
        int i;
        System.out.print(“Even No :”);
        for (i=2;i<=range;i++)
        {           
            if(i%2==0)
               System.out.print(i+”, “);           
        }       
    }
}

Add Comment