C++ test study help

Hey guys. My professor gave me some practice problems to complete for our test and I just cannot understand how to do this one. Can someone please help me? Thank you.

Here is the problem:

2 THE SUM LIMIT PROBLEM
Given 2 non-negative ints, a and b, print their sum, so long as the sum has the same number of
digits as a. If the sum has more digits than a, just return a without b.
 input of 2, 3 → 5
 input of 8, 3 → 8
 input of 8, 1 → 9
Given 2 non-negative ints, a and b, print their sum,


Start with that.
You should start, as repeater said, with coding a program that'll simply output the sum of two numbers. You can then check if "a" is a factor of 10 bigger than the sum.
Topic archived. No new replies allowed.