Advertisement
Guest User

Untitled

a guest
Nov 13th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.69 KB | None | 0 0
  1.     Private Sub HSCSub(ByRef table(,) As Integer)
  2.         Dim numberOfRows As Integer
  3.         Dim numberOfCols As Integer
  4.         Dim tempToMove As Integer
  5.         numberOfCols = 4
  6.         numberOfRows = 4
  7.  
  8.         For row = 1 To numberOfRows
  9.             For col = row + 1 To numberOfCols
  10.                 tempToMove = table(row, col)
  11.                 table(row, col) = table(col, row)
  12.                 table(col, row) = tempToMove
  13.             Next col
  14.             For newRow = 1 To numberOfRows - 1
  15.                 If table(newRow, row) > table(4, row) Then
  16.                     table(4, row) = table(newRow, row)
  17.                 End If
  18.             Next newRow
  19.         Next row
  20.     End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement