hi i really need help on making c++ problems about the long math problems like long addition,subtraction, multiplication and division i've only began learning awhile ago so i just needed some samples or algorythms for this, if not both would be appreciated, if not a link to some guides about this

example:

358

+ 235

---------

593

blahhh101
0
Newbie Poster

## Recommended Answers

Jump to PostAs in

`char n1[] = "358"; char n2[] = "235"; int carry = 0; sum = carry + (n1[2] - '0') + (n2[2] - '0' ); // Add "8" and "5", as 8 and 5 result = sum % 10; // ie 3 carry = result / …`

Jump to PostSo where is the linked list, or anything else you spoke of 2 weeks ago?

## All 5 Replies

Salem
5,138
Posting Sage

blahhh101
0
Newbie Poster

Salem
5,138
Posting Sage

blahhh101
0
Newbie Poster

Salem
5,138
Posting Sage

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.