wap to input multiplication table of 6
using java
Answers
Answered by
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