Question: You will write a program in C++ that can be used to check guesses for the following puzzle: For what six-digit number SLAYER is the
You will write a program in C++ that can be used to check guesses for the following puzzle:
For what six-digit number SLAYER is the following equation true, where each letter stands for the digit in the position shown: SLAYER + SLAYER + SLAYER = LAYERS
Your program must:
- Prompt for a guess for SLAYER.
- Check if the guess solves the puzzle and print the result of the check along with a brief justification.
- Although this problem can be solved using strings and string operations, to reinforce your understanding of numeric expressions and the representation of integers, you MUST NOT use strings
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
