public void ConsoleOutput() { for (int i = 1; i <= size; i++) { for (int j = 1; j <= size; j++) { LocalValue localValue = new LocalValue(i, j, size); Console.Write(localValue.Value + " "); } Console.Write("\n"); } }
public string Output() { string res; res = "\\[\\smqty(\n"; for (int i = 1; i <= size; i++) { for (int j = 1; j <= size; j++) { LocalValue localValue = new LocalValue(i, j, size); res += localValue.Value + " & "; } res = res.Remove(res.Length - 2, 2); res += "\\\\\n"; } res += ")\\]"; return(res); }