0
else if(choice == 2) {
    System.out.println("Result: "+(firstnum/secondnum)); 
}

I am using that as a code for my menu, however when a second number is higher than the first number it inputs = 0, how do I fix it? For example first number: 2, second number:10 and results is 0 why?

  • 1
    This is Java, not JavaScript. Despite the unfortunate naming choice, the two languages are completely unrelated. – Chris G Oct 04 '20 at 10:31

0 Answers0