SCHOOL OF CODE BUILDERS
Learn To CODE. Become A DEVELOPER.
Pages
HOME
DATA STRUCTURES
STRINGS
ARRAYS
MATRIX
BINARY TREES
LINKED LIST
STACK
QUEUE
SORTING
SEARCHING
C
PYTHON
PSEUDOCODE
CONTEST PROBLEMS
ALGORITHMS
PATTERNS
PHP
C PUZZLES
C INTERVIEW QUESTIONS
JAVA
C++
HASHING
RECURSION
BASIC C PROGRAMS
TCS-CODEVITA
FACEBOOK
CONTACT US
To find the sum of the one-hundred 50 digit numbers
Work out the first ten digits of the sum of the following one-hundred 50-digit numbers.
Source: ProjectEuler.net Problem(13)
Python Implementation:
/* Python can have any range of integer value */
i=1 sum=0 while i<=100: s=raw_input() sum+=int(s) i+=1 print sum
PREVIOUS
NEXT
HOME