2 Answers
0
Umang, Its very easy. I will share the Algo with you. 1. Get table number from user example variable is n 2. Start a loop from 1 - 10 example loop variable is i 3. In each iteration you need expression like 'i * n =' i*n That' it Scanner sc=new Scanner(System.in); int n,i; System.Out.Println("Enter number"); n = sc.nextInt(); for(i=1; i<=10; i++) { System.Out.Println(i + " * " + n + " = " + (i*n)); } Thanks - Salman
25th Apr 2018, 9:19 AM
Salman Mushtaq
Salman Mushtaq - avatar
0
thanks
25th Apr 2018, 2:51 PM
Umang Goswami
Umang Goswami - avatar