0

Why my program is not working? The link:https://code.sololearn.com/cqkS7a3B3Fzj/?ref=app

My program is not working in code playground. Please help !!!!!😦. I've corrected the code then also it's not working properly.

27th May 2017, 1:47 PM
Prajwal Agarwal
Prajwal Agarwal - avatar
5 Respuestas
+ 7
There are so many errors in your code. Here is a corrected code. import java.io.*; class sum { public static void main(String args[]) throws IOException { int a,b,sum = 0; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter two number"); a=Integer.parseInt(br.readLine()); b=Integer.parseInt(br.readLine()); sum = a+b; System.out.println("Sum is "+sum); } }
27th May 2017, 2:58 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
0
Please answer my question.
27th May 2017, 2:40 PM
Prajwal Agarwal
Prajwal Agarwal - avatar
0
Then why it's not working.I was not able to find out.
27th May 2017, 2:56 PM
Prajwal Agarwal
Prajwal Agarwal - avatar
0
Thank you Krishna Sir.It was a stupid question I will correct my code.
27th May 2017, 3:00 PM
Prajwal Agarwal
Prajwal Agarwal - avatar
0
Now also the code is not working properly.
27th May 2017, 3:41 PM
Prajwal Agarwal
Prajwal Agarwal - avatar