0
Ladder
The program should execute for example: input: 8 output: 1 12 123 1234 12345 123456 1234567 12345678 Here is my code: n = int(input()) k = 0 for k in range(n): k +=1 print(k) Here you can check in the link: https://snakify.org/en/lessons/for_loop_range/problems/ladder/
1 Odpowiedź
+ 5
n = int(input())
for i in range(1,n+1):
for j in range(1,i+1):
print(j,end='')
print()