Skip to content

Commit b394151

Browse files
committed
problem 6
1 parent c2fd975 commit b394151

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

6.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
a = 0
2+
b = 0
3+
1.upto(100) do |x|
4+
a += x * x
5+
b += x
6+
end
7+
p b * b - a
8+

0 commit comments

Comments
 (0)