Hey guys, I had a test today in C programming (did well, 2 out of 3 tasks done xD), but I have had a problem with one of the tasks and I couldn't figure it out.
I had to write a code where user can input 2 double-digit numbers (the numbers would be loaded from an existing txt file) and the function should check if the sum of digits in first number matches the sum of digits in second number (for example, 23 and 41 checks out, so the output message should be "It's correct!"; otherwise, the message is "It's incorrect!"). Also, the program should stop if the numbers that user chose aren't double-digit.
I had no idea how to even make a condition for that function, even though I'm getting the feeling it's kinda easy xD So I'm interested to see how you guys would solve this, it'd be appreciated