0

2 22 222 2222 22222

answer

16th Feb 2017, 9:39 AM
sonam
5 ответов
+ 3
for i in range (5): for j in range(i+1): print(2, end='') print('\n')
16th Feb 2017, 9:50 AM
Varun Moghe
Varun Moghe - avatar
+ 2
for I in range(1,6): print("2"*I)
16th Feb 2017, 10:59 AM
Cameron Green
Cameron Green - avatar
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
28th May 2021, 5:39 AM
Mohamed Azil
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
7th Aug 2021, 7:16 AM
Ishika Pandey
Ishika Pandey - avatar
0
number_of_terms = 5 sum1=0 for i in range (1,number_of_terms+1): num=eval('2'*i) sum1+=num print(sum1)
7th Dec 2023, 8:29 PM
aish_seojudin
aish_seojudin - avatar