Tales of Programming
My blog on software development
Sunday, December 19, 2010
Project Euler - Python - Problem 6
sum_of_square
,
square_of_sum
=
0
,
0
for
i
in
range
(
1
,
101
):
sum_of_square
+=
i
*
i
square_of_sum
+=
i
total
=
square_of_sum
*
square_of_sum
print
((
total
-
sum_of_square
))
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment