5 lines
68 B
Python
5 lines
68 B
Python
n = int(input("Enter a number: "))
|
|
|
|
b = sum(range(1, n+1))
|
|
print(b)
|