The C Programming Tips and Tricks Wiki

 

013

Page history last edited by Kenneth Finnegan 1 yr ago

Project Euler Problem #13

  • Initialize a string with the entire set of 100 numbers to begin with
  • Parse each number into an array, one digit per int
  • Add all of each digit together
  • Carry all numbers > 9 into the next digit
  • Find the beginning of the number and print 1

 

Runtime: 0.009s

PE013_c

 


Return to list of solutions

Comments (0)

You don't have permission to comment on this page.