This is a basic Java program that prints a triangle shape to the console. The program is a simple exercise in using System.out.println statements to create a text-based pattern.
Written by Mohammed Qutu on 1/18/2024.
- Java 21.0.2 or later
To run the program, compile the Triangle.java file and execute it. The output will display a triangle shape made up of asterisks (*).
*
***
*****
*******