Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python Pyramid Patterns half

rows = int(input("Enter number of rows: "))

ascii_value = 65

for i in range(rows):
    for j in range(i+1):
        alphabet = chr(ascii_value)
        print(alphabet, end=" ")
    
    ascii_value += 1
    print("
")
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #Pyramid #Patterns
ADD COMMENT
Topic
Name
8+4 =