BufferedReader b = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(b.readLine());
int b1 = Integer.parseInt(b.readLine());
if (a<b1)
System.out.println(a);
else if (b1<a)
System.out.println(b);
else if(a==b1)
System.out.println(a);
verfication failed but runs fine
Under discussion
Comments (3)
- Popular
- New
- Old
You must be signed in to leave a comment
Ryon
15 September 2018, 01:42
You're trying to display a variable that doesn't exist.
Edit: Let me edit what I said... "b" variable is a BufferedReader as you have declared. b1 is the one you should be printing instead.
0
gery
15 September 2018, 12:57
thanx for the idenfication
0
Khurram
14 September 2018, 15:46
run it for (2,1)
0