Python Program:

- To print half triangle pattern using number

Example:

User Input: 3

Output:

1
2 2
3 3 3
rows=int(input("Enter number of rows : "))
for i in range(1,rows+1):
  for j in range(1,i+1):
    print(i,end=" ")
  print("")

Output:

  Enter number of rows : 4
  1
  2 2
  3 3 3
  4 4 4 4
Program
pattern

Main logic :

c=65 # "A" starts from 65
for i in range(1,rows+1): #rows : number of rows to print
  for j in range(1,i+1):
    print(i,end=" ")
  print("")
Concept

Coming Soon !

Quick
Tutorial

Quote

Sometimes it’s the smallest decisions that can change your life forever.