Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Dec 13th, 2017
79
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.14 KB
| None
|
0
0
raw
download
clone
embed
print
report
n = 4
# initialize sum and counter i
sum = 0
i = 1
while i <= n:
sum = sum + i
i = i+1 # update counter
print("The sum is", sum)
Add Comment
Please,
Sign In
to add comment
Public Pastes
Luck Hub
Lua | 1 min ago | 0.10 KB
Business Bloomer WooCommerce: Create an order...
PHP | 10 min ago | 13.41 KB
Business Bloomer WooCommerce: Bulk Sale Price
PHP | 12 min ago | 9.61 KB
Business Bloomer WooCommerce: Shipping Rates...
PHP | 18 min ago | 9.29 KB
Nexa - Power User Monthly
JavaScript | 28 min ago | 0.49 KB
Nexa - Power User Annual
JavaScript | 28 min ago | 0.49 KB
Nexa - Premium Annual
JavaScript | 30 min ago | 0.49 KB
Nexa - Pro Annual
JavaScript | 31 min ago | 0.48 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!