diamond-cli
- Active · last change 6-8-2025
- ★ 15 on GitHub
README
🔷 Diamond Pattern Generator
This is a simple CLI Delphi program that draws different types of diamond shapes based on user input (as positive int).
- Filled diamond using
*characters. - Number-based symmetrical diamond.
- Alphabet-based symmetrical diamond.
- Unfilled (hollow) diamond using
*characters.
Requirements
- Delphi compiler.
Running
- Open the project in your Delphi IDE or compile it via CLI.
- Then just run.
- When prompted, enter a positive integer to define the size of the diamond.
🧾 Sample Input and Output
Input:
Please enter the size of the diamond shape (Enter -1 to stop): 3Output:
Filled Diamond with *:
*
***
*****
***
*
Diamond with Numbers:
1
121
12321
121
1
Diamond with Letters:
A
ABA
ABCBA
ABA
A
Unfilled Diamond with *:
*
* *
* *
* *
*
