Q10

mail@pastecode.io avatar
unknown
java
2 years ago
409 B
3
Indexable
import java.util.Scanner;

public class Main {
    public static void main(String[] args)
    {
        
        Scanner scanner = new Scanner(System.in);
        int input = scanner.nextInt();
        String errorNumber = "";
        for (int i = 1; i <5_000 ; i++) {
            errorNumber = errorNumber + i;
        }

        System.out.println(errorNumber.charAt(input-1));
    }
}