Java Program to Print Multiplication Table

preview_player
Показать описание
in this Java video you will learn to write an example program to display / print the multiplication table for a number entered by the user in Java programming language.

Displaying the multiplication table is one of the simple program a beginner can write.
We first ask the user to enter a number and we store that in a variable.
Then we use a for loop and loop from 1 up to certain number as the programmer wants.
We multiply the number entered by the user with the loop counter variable and display the result.

our Social Media Pages

Our Website

#CPPprogramming #ExampleProgram
Рекомендации по теме
Комментарии
Автор

for(int i=1;i<=9;i++)
{
for(int j=1;j<=9;j++)
{
int multi=j*i;
System.out.println(i+" *"+j+"="+multi);
}
System.out.println();
}
its is easiest way to print a tables use this method
-nana kandupudicha😁

realityshowstamil
Автор

When I tell you this saved my life, it saved my life.

reo
Автор

then how can u create a java program that will generate a multiplication table from 1 to 10 using looping statements

Ko_Ka_Koka
Автор

This video literally saved me, doing a project at 02:07 AM

klerksyy
Автор

Can you do the same thing but for swing class and print in the basic simple gui. I mean print the whole table.

AXLtheOG