Computer Science, asked by muskaan88, 1 month ago

Write a programin java to print the table

of 6​

Answers

Answered by akashrbllps
1

Answer:

import java.util.Scanner;

public class Multiplication_Table

{

   public static void main(String[] args)

   {

       Scanner s = new Scanner(System.in);

System.out.print("Enter number:");        

int n=s.nextInt();

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

       {

           System.out.println(n+" * "+i+" = "+n*i);

       }

   }

}

Explanation:

Similar questions