Pattern 1 Output
0
0 1
0 2 4
0 3 6 9
0 4 8 12 16
0 5 10 15 20 25
0 6 12 18 24 30 36
0 7 14 21 28 35 42 49
0 8 16 24 32 40 48 56 64
0 9 18 27 36 45 54 63 72 81
Source Code
Below source code will print the same desired output result
class Pattern1
{
public static void main(String[] args)
{
int n = 10;
for(int i = 0; i < n; i++)
{
for(int j = 0; j <= i; j++)
{
System.out.print("\t" + (i * j));
}
System.out.println();
}
}
}
Hope you find this helpful!
Keep helping and happy ๐ coding
Related Articles
Deepen your understanding with these curated continuations.
JAVA 5 min read
How to Find ASCII Value of a Character in Java: 4 Easy Methods
Master finding ASCII values in Java! Explore 4 different methods including type-casting, brute force, and byte arrays with clear, practical code examples.
Vishnu
Program 5 min read
Factorial of a Number Using For Loop in Java: Code & Algorithm
Find the factorial of any integer in Java using a for loop. Explore the step-by-step logic, code implementation, and why we initialize the result variable to 1.
Vishnu
Program 5 min read
Factorial of a Number Using While Loop in Java: Guide & Code
Learn how to calculate the factorial of a number in Java using a while loop. This guide includes a step-by-step algorithm, code examples, and output analysis.
Vishnu