write a program to print a table of n number
Answers
Answered by
5
import java.util.*;
public class Table
{
public static void main(String args[])
{
Scanner in = new Scanner(System.in);
int a,i,n;
for(i=1;i<=10;i++);
{
System.out.println("Enter the number");
n=in.nextInt();
a= n*i;
System.out.println("Display the table" +a);
}
}
}
Similar questions