I have a text file like:
ABCD=ABC+BCD+CDA
ABC=AB+BC
BCD=BC+CD
CDA=CD+DA
AB=A+B
BC=B+C
CD=C+D
DA=D+A
I want the user to input the result. The program should give me the output to the lowest level.
e.g. User Enters: ABCD then the program should display ABCD = ABC+BCD+CDA, ABC=AB+BC, BCD=BC+CD, CDA=CD+DA, AB=A+B, BC=B+C, CD=C+D
Note: I want to be able to have as many expressions I want which as many inputs. You may consider '=' '+' to be a space. Each column may have a header.
Can someone please help me?