0

Please check my code and point out my mistakes.

https://code.sololearn.com/caAoiMSYJ7JI/#java Thanks in advance for your help

28th May 2020, 11:12 AM
H-J
H-J - avatar
2 Réponses
+ 2
Put this at the end of if block. System.out.println(Ir1+"/"+Ir2); Since Ir1 and Ir2 are local variables and have scope limited to the block in which they are declared. You are accessing them outside their scope.
28th May 2020, 11:49 AM
Avinesh
Avinesh - avatar
+ 1
@Avinesh Thanks
28th May 2020, 12:07 PM
H-J
H-J - avatar