answersLogoWhite

0

import java.util.*;

class even{

public static void main(String[]args){

Scanner cons = new Scanner(System.in);

int even;

even = cons.nextInt();

if(even % 2 == 0)

{

System.out.println(even);

}

}

}

User Avatar

Wiki User

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

BeauBeau
You're doing better than you think!
Chat with Beau
JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan
ReneRene
Change my mind. I dare you.
Chat with Rene

Add your answer:

Earn +20 pts
Q: Java code that display even numbers from 0 to 10?
Write your answer...
Submit
Still have questions?
magnify glass
imp