Untitled
Anonymous
python
12/23/2023 8:22 AM
204 B
12
Indexable
n = int(input())
def tinh_tong_while(n):
i = 1
sum = 0
while i < n+1:
sum = sum + i
i = i +1
return sum
print(tinh_tong_while(n))Editor is loading...
Leave a Comment