Corrected a few C'isms and also added the solutions to four more problems

This commit is contained in:
MitchellHansen
2017-03-13 22:53:00 -07:00
parent 10b76d0ca6
commit 44358923e3
11 changed files with 183 additions and 7 deletions

View File

@@ -1,14 +1,14 @@
#Difference between the sum of squares and the square of the sum of the first 100 numbers
#find the sum of the squares
sum_of_squares = 0;
sum_of_squares = 0
for i in range (1, 101):
sum_of_squares += i * i
#find the square of the sum
square_of_sums = 0
for i in range(1, 101):
square_of_sums += i;
square_of_sums += i
square_of_sums *= square_of_sums