Preview:
import java.util.Scanner;
public class java{
    public static void main(String [] args){
    Scanner sa=new Scanner(System.in);
    int x;
    System.out.println("donner un entier: \n");
    x=sa.nextInt();
    if((x%2)==0)
        System.out.println("entier paire");
    else
    System.out.println("entier impaire");

}}
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