Question: Okay guys so here is my code. The problem is from Project Euler problem 13. My assignment had us reverse the digits and then had

Okay guys so here is my code. The problem is from Project Euler problem 13. My assignment had us reverse the digits and then had to add them through a function and we have to print out the total sum of all 100 numbers but we also have to print out the first ten digits of the final answer as wel separately. I have my program to print out all of the addition when adding the number and I get the final answer at the very bottom but dont need the addition process to be shown. Help please! Again just need help printing out the final answer when all 100 numbers are added together and the first ten digits of the final sum of the answer as well.  Okay guys so here is my code. The problem is from
Project Euler problem 13. My assignment had us reverse the digits and
then had to add them through a function and we have to

using namespace std; void add(int al, int sizel, int bll, int size2): void results(int al,int size): int main() ifstream numFile ("nums.txt" int size 55 int Dsizel-() string numbers: int sum[size () if (numFile.is open1 Opening File. Mhile (getline (numFile, numbers))t 1/ Get each line from file. for(int i - 0; 1 5; 1+) DI umbers(49 1] // Put converted into reverse. add(sum, size,D,size) for(int . ;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!