Another tip that can help you is that you need to save the equation in some data structure and then (re) follow some steps that change the data structure. The question is, what kind of data structure can represent this kind of data well? If you focus only on coefficients (since each row always has the same variable), you can simply write:
2 7 2 76 6 1 4 26 8 2 18 1
In addition, you can assume that all operations are + , because "minus 7y" actually means "plus (-7) y". This is like a 2D array, so when programming in C # you can start by representing the equations as int[,] . After you load the data into this data structure, you just need to write a method that performs the operation you performed on paper (in general).
source share