– Problem 8 – C solution

Find the greatest product of five consecutive digits in the 1000-digit number.

731671765313 … … 0420752963450

By subtracting the char ‘0’ from the char that is pulled from the string you effectively convert the char to an int allowing you to do integer math.

– Josh

This entry was posted in C, Project Euler. Bookmark the permalink.

Leave a Reply