Program to print multiplication table of a number | Java program to print table over given range . ; Driver code ; Change here to change input number ; Change here to change result
import java . io . * ; class table { public static void main ( String arg [ ] ) { int n = 8 ; int range = 12 ; for ( int i = 1 ; i <= range ; ++ i ) System . out . println ( n + " ▁ * ▁ " + i + " ▁ = ▁ " + n * i ) ; } }