0
2 22 222 2222 22222
answer
5 odpowiedzi
+ 3
for i in range (5):
for j in range(i+1):
print(2, end='')
print('\n')
+ 2
for I in range(1,6):
print("2"*I)
0
n=int(input("no.of terms"))
s=int(input("enter number"))
start=s
sum=0
for i in range(0,n):
print(start,end=" ")
sum+=start
start=(start*10)+s
0
n=int(input("no of terms"))
s=int(input("enter a no"))
start=s
sum=0
for i in range(0,n):
print(start,end="")
sum+=start
start=(start*10)+s
0
number_of_terms = 5
sum1=0
for i in range (1,number_of_terms+1):
num=eval('2'*i)
sum1+=num
print(sum1)