cs/stuff/loops/num2.py
lw-everestlinux 7a1383f13c hi buddy
2022-12-13 11:38:55 -05:00

5 lines
68 B
Python

n = int(input("Enter a number: "))
b = sum(range(1, n+1))
print(b)