0
Please check my code and point out my mistakes.
https://code.sololearn.com/caAoiMSYJ7JI/#java Thanks in advance for your help
2 Respuestas
+ 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.
+ 1
@Avinesh
Thanks