Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- StringBuilder sb = new StringBuilder();
- for (int row = 0; row < matrix.Getlength(0); row++)
- {
- StringBuilder temp = new StringBuilder();
- int colLessOne = matrix.GetLength(1) - 1;
- for (int col = 0; col < colLessOne + 1; col++)
- {
- if (col == colLessOne)
- {
- temp.Append(matrix[row, col].ToString());
- }
- else
- {
- temp.Append(matrix[row, col].ToString() + " ");
- }
- }
- sb.AppendLine(temp.ToString());
- }
Advertisement
RAW Paste Data
Copied
Advertisement