display even and odd numbers in java using for loop

Let’s learn to display even and odd numbers in java using for loop. Display even and odd numbers in java using for loop In even odd program in java using for loop, first get input (maximum number) from user using nextInt() method of Scanner class. This number is stored in integer variable ‘number’. Here we…

Read More Display even and odd numbers in java using for loop