Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pattern

num = int(input("Enter the Number: "))
k = 1
for i in range(0, num):
    for j in range(0, i+1):
        print(k, end="")
        k = k+1
    print()

# This code is contributed by Shubhanshu Arya (Prepinsta Placement Cell Student) 
Source by prepinsta.com #
 
PREVIOUS NEXT
Tagged: #pattern
ADD COMMENT
Topic
Name
7+8 =