+ 5

Why the output is 10?

import java.io.*; public class Program { public static void main(String[] args)throws IOException{ int a; a=System.in.read(); System.out.print (a); } } //Why it is showing output as 10? // What is the process which is going on in the internal memory?

6th Nov 2021, 10:22 AM
Atul [Inactive]
4 Respuestas
+ 2
But why the unfiltered stuff is always 10. When no input is given?
6th Nov 2021, 1:10 PM
Atul [Inactive]
+ 2
7th Nov 2021, 5:55 AM
Atul [Inactive]