Skip to content

About

A simple Java program that prints a triangle shape to the console. Created as an introductory exercise in Java programming.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

TriangleShape

Description

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.

Author

Written by Mohammed Qutu on 1/18/2024.

Requirements

  • Java 21.0.2 or later

Usage

To run the program, compile the Triangle.java file and execute it. The output will display a triangle shape made up of asterisks (*).

Example Output

   *
  ***
 *****
*******


About

A simple Java program that prints a triangle shape to the console. Created as an introductory exercise in Java programming.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages