Program to find even number



Program to find even number


Even number is a number which is divisible by 2 .In this program we find the  even number  between 1-100

class EVEN
{
public static void main(String args[])
{


int b=100,i;

for(i=2;i<=b;i++)


{
 if(i%2==0)
 

System.out.println(+i);


}

}
}

No comments:

Post a Comment