Preview:
import java util.scanner
class oddeven
{
    public static void main(String[] args)
    {
        int n;
        System.out.print("Enter any number ");
        Scanner r=new Scannner(System.in);
        n=r.nextInt();

        if(n%2==0)
        {
            System.out.print("The number is even");
        }
        else
        {
            System.out.print("The number is odd");
        }

    }
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter