MeshWorld India LogoMeshWorld.
JAVAProgram1 min read

Pattern programs in Java

Listen to ArticleAI Speech
~1 min read narration
100%
Pattern programs in Java

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

Reader Quality Feedback

Did this technical guide help solve your problem?

Suggest Errata ($0)
Vishnu
Primary Author

Vishnu

Founder & Principal Architect at MeshWorld. Senior engineer and instructor specializing in AI agent systems, scalable web architecture, and modern development workflows.

Explore Author Archive
Compute Fuel & Open Testbed
100% Independent & Verified

Fuel High-Density, Zero-Fluff Engineering Deep-Dives

Every guide on MeshWorld is validated on physical Linux nodes and reproducible testbeds. If this article saved you hours of debugging or unblocked production, consider funding our next cluster run.

Weekly Dispatch

Join MeshWorld Dispatch

Get practical tutorials, system blueprints, and curated AI engineering notes straight to your inbox. No fluff, zero spam.

Zero spam. 1-click unsubscribe anytime.Prefer RSS?
Curated Continuations

Up Next in This Domain.

Browse Full Archive