code not working
I'm trying to solve TOO + TOO + TOO + TOO = GOOD using a c++ program.
My solution to this, is to use a nested loop for each unique letter (in this case T, O, G, D). The loops would systematically assign the digits from 0-9 to each letter.
However the following program gives me the wrong results :crazy:
Re: code not working
How are the results wrong?
What results did you get, and what results did you expect?
Is a requirement that T,O,G,D are all unique? If so, then you haven't coded this into your program.
Is a requirement that neither of TOO and GOOD begin with zero? Similarly you haven't coded that in.
|All times are GMT +5.5. The time now is 22:04.|