Skip to content

ceezign/Pascal-Triangle-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Pascal’s Triangle Generator

📌 Overview

This is a simple Python program that generates Pascal’s Triangle using nested loops. It helps practice loop structures, list manipulation, and formatted output. The program also supports exporting the triangle to a .txt file.

🚀 Features • Asks user for number of rows (e.g., 5). • Generates Pascal’s Triangle row by row using nested loops. • Prints the triangle as a symmetrical pyramid. • Allows adjustable spacing between numbers. • Option to export the triangle to a .txt file.

Pascal Triangle Output

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages