import java.util.Scanner;
class UserInput
{
public static void main(String ar[])
{
int n,i;
Scanner obj = new Scanner(System.in);
System.out.println("Enter a number");
n = obj.nextInt();
for(i=1;i<=10;i++)
{
System.out.println(n + " * " + i + " = "+n*i);
}
}
}
OUTPUT
Comments
Post a Comment