#1)
n = int(input())
sum = 0
i = 1
while i <= n:
    sum += i
    i += 1
print(sum)

#2)
num = int(input())
i = 1
while i <= 9:
    print(f"{num} x {i} = {num*i}")
    i += 1

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: