

Java Program to Print Star Pattern in Triangle Shape
source link: https://www.geeksforgeeks.org/videos/java-program-to-print-star-pattern-in-triangle-shape/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Java Program to Print Star Pattern in Triangle Shape
- 90 Views
- 27/05/2022
In this video, we will see Print Pattern with star (*) symbol in Java Program. Here we see the right triangle star pattern is also quite a simple pattern. It has a shape of a triangle with its perpendicular line at the right side.
Input : n = 5 Output: * * * * * * * * * * * * * * *
Algorithm:
Steps to create a left triangle star pattern in Java:
Step 1: Take the size of the triangle. Step 2: Create a nested loop and repeat the outer loop for times equal to the size of the triangle. Step 3: Repeat the inner loop for times equal to the index of the outer loop and print star (*).
Java program to print pyramid pattern: https://www.geeksforgeeks.org/programs-printing-pyramid-patterns-java/
Recommend
-
9
CPP Program To Print Floyd's Triangle using For LoopCPP Program To Print Floyd's Triangle using For LoopVideo Player is loading.Loaded: 0%Remaining TimeĀ -6:04...
-
10
Java Program to Print Hollow Diamond Star PatternJava Program to Print Hollow Diamond Star Pattern12/06/2022In this video, we will see a JAVA progr...
-
14
Java Program to Print Floyd's TriangleJava Program to Print Floyd's Triangle10 Views15/06/2022In this video, we will print Floyd's Triangl...
-
5
Python Program to Print Stars in Hollow Diamond ShapePython Program to Print Stars in Hollow Diamond ShapeHey everyone, welcome to Geeks for geeks. In
-
10
Java Program to print Swastika PatternSkip to content
-
7
Java program to print Trapezium PatternSkip to content
-
11
Java program to print matrix in snake patternSkip to content
-
11
Python Program to Print Square Star Pattern with diagonalsSkip to content
-
8
Java program to print square star pattern with diagonalSkip to content
-
12
Python program to print the alphabets A to Z in star patternSkip to content
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK