Computer Science, asked by sukh1121, 6 months ago

write a program to input a number and print the table of that number using while loop in Java​

Answers

Answered by shaiashourya
6

Answer:

Java Program to Print Multiplication Table for any Number

public class Multiplication_Table.

Scanner s = new Scanner(System.

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

int n=s. nextInt();

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

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

Explanation:

hope it will help you

Similar questions