Подаю на вход число 19
, получаю в консоли 49
. Почему?
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String[] args) throws IOException{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int N = reader.read();
System.out.println(N);
}
}