import java.util.Scanner;
public class Main
{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        
        System.out.println("Please enter a number, for which you want to write a table:");
        int number = scan.nextInt();
        
        for(int count=1; count<=10; count++){
            System.out.println(""+ number +" * "+ count+ " = " +number*count);
        }
     
    }
}

Output:

Leave a Reply

Your email address will not be published. Required fields are marked *