Computer Notes, Programming codes, Hardware and Networking Tip, Entertainment, Biography, Internet Tip, Tech News, Latest Technology, YouTube,
import java.util.Scanner; class EvenArray{ public static void main(String args[]){ Scanner in = new Scanner(System.in); int x, y; System.out.print("Enter First Number : "); x = in.nextInt(); System.out.print("Enter Second Number : "); y = in.nextInt(); for(int i=x; i<=y; i++){ if(i%2==0){ System.out.println(i); } } } }