Hi all, My algorythm is functionnal but i really don't know how to read a sequence of numbers. So that i can finish the algo and the task. If someone can guide me on the right track ;).
package fr.codegym.task.task06.task0606;

import java.io.*;

/*
Chiffres pairs et impairs
*/

public class Solution {

    public static int pair;
    public static int impair;

    public static void main(String[] args) throws IOException {
        //écris ton code ici
        System.out.println("entre un chiffre");
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String nombre = reader.readLine();
        int nb = Integer.parseInt(nombre);
        int a = 0;
        int b = 0;

        if (nb % 2 == 0) {
            //System.out.println("pair");
            a ++;
        } else if(nb % 2 != 0) {
            //System.out.println("impair");
            b ++;
        }
        System.out.println("Pair : "+ a +" Impair: "+ b);
    }

}