Computer Science, asked by rishipriya23, 10 months ago

wap to input multiplication table of 6
using java

Answers

Answered by suryagokul0565670405
1

Answer:

import java.io.*;

import java.lang.*;

class MultiplicationTable

{

   public static void main(String args[]) throws IOException

   {

       BufferedReader br=new BufferedReader(new InputStreamReader(System.in));

       System.out.println("Enter Number: ");

       int num=Integer.parseInt(br.readLine());

       System.out.println("*****MULTIPLICATION TABLE*****");

           for(int j=1; j<=10; j++)

           {

               System.out.println(num+ "*" +j+ "="  +num*j );

           }

   }

}

Explanation:

Similar questions