Advertisement
cogier

Binary digits

Apr 8th, 2020
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.31 KB | None | 0 0
  1. 'https://rosettacode.org/wiki/Binary_digits
  2. Imports System
  3. Module Program
  4.     Sub Main()
  5.         Dim iBin As Integer() = {5, 50, 9000}
  6.         Dim iCount As Integer
  7.  
  8.         For iCount = 0 To iBin.Count - 1
  9.             Console.WriteLine(Convert.ToString(iBin(iCount), 2))
  10.         Next
  11.  
  12.     End Sub
  13. End Module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement