PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#You are given a positive integer .
#Your task is to print a palindromic triangle of size .
#For example, a palindromic triangle of size is:
#1
#121
#12321
#1234321
#123454321
#You can't take more than two lines. The first line (a for-statement) is already written for you.
#You have to complete the code using exactly one print statement.
#Input Format
#A single line of input containing the integer N.
#Constraints 0< N < 60
for i in range(1,int(input())+1): #More than 2 lines will result in 0 score. Do not leave a blank line also
print ((10**i-1)**2//81)
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run