Merge pull request #290 from TheAlgorithms/fixed_sol3_problem1

I fixed the sol3.py of problem 1
This commit is contained in:
Christian Bender 2018-04-15 23:31:18 +02:00 committed by GitHub
commit 2c0de39287
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,5 @@
from __future__ import print_function
''' '''
Problem Statement: Problem Statement:
If we list all the natural numbers below 10 that are multiples of 3 or 5, If we list all the natural numbers below 10 that are multiples of 3 or 5,
@ -7,7 +9,7 @@ Find the sum of all the multiples of 3 or 5 below N.
''' '''
This solution is based on the pattern that the successive numbers in the series follow: 0+3,+2,+1,+3,+1,+2,+3. This solution is based on the pattern that the successive numbers in the series follow: 0+3,+2,+1,+3,+1,+2,+3.
''' '''
from __future__ import print_function
try: try:
raw_input # Python 2 raw_input # Python 2
except NameError: except NameError: