3 lines
85 B
Python
3 lines
85 B
Python
n = int(input("Input a number: "))
|
|
sum_num = (n * (n + 1)) / 2
|
|
print(sum_num) |