Untitled

mail@pastecode.io avatar
unknown
python
2 months ago
153 B
0
Indexable
Never
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))
Leave a Comment