I have the code here but I'm not sure how to display the number of digits once I get the user input as an int.
public class Chapter8 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n;
        System.out.print("Enter a positive integer: ");
        n = in.nextInt();
        if (n <= 0) {
            while (n != 0) {
                System.out.println(String.format("%02d", 5));
        } 
    }
}