My current java program displays multiplication table from zero to infinity. i want to limit that from 1 to 20 only…i want multiplication table output from 0 to 20 only. i.e. i dont want multiplication table of zero or any number greater than 20 as output. is it possible to do what i want using loops only if not loops
Tag: multiplication
Overflow occurs with multiplication
The above code creates overflow and doesn’t print the correct result. The above 2 lines print the correct result. My questions are- Does it matter to the compiler which I use, m2 or m3? How does java starts multiplying? Left to right or right to left? Does 24*60 gets computed first or 1000*1000? Answer I would use the m2 line