Edit your own copy...
|
Hosted by CoCalc
|
Download
Kernel:
Python 3 (system-wide)
In [2]:
Copy
n
=
int
(
input
(
)
)
c
=
0
sum
=
0
while
c
<=
n
:
sum
+=
c
c
+=
1
print
(
sum
)
Out[2]:
21
In [0]:
Copy