write a java program to print multiplication table in java?

preview_player
Показать описание
java multiplication table loop,
java multiplication table user input,
java multiplication table prompt,
java eclipse multiplication table,
java multiplication table,
java multiplication table program,
java create a multiplication table,
java program to display multiplication table of a given number,
multiplication table by java,
java multiplication table code,
java create multiplication table
Рекомендации по теме
Комментарии
Автор

You are explaining very good, thank you!

EnglishwithNaja
Автор

bro i need to know how wrote table like this with the help of encapsulation? without taking lopping statement

SanthoshKumar-suvr
Автор

Sir if u want to print 1to 5 tables like the 1*1=1 to 1*1=10 and 5*10

meghanadasari-ywci
Автор

I want to limt the user inputs from 1-9 how can I?, I've use the while statment but isn't working here is my code:import java.util.Scanner;
public class Q6_1{
public static void main(String[]args) {
int x;
Scanner in=new Scanner (System.in);
System.out.println("Enter a number between 1-9: ");
x=in.nextInt();
while ((x<=9&&x>=1);

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

System.out.printf("%d * %d = %d \n", x, i, x*i);

}
}
}

متجرنشميات
Автор

You did not explain about scanner and what it does and why it needs there

candyxoxo