.NET Binary Numbers

by jason25. July 2006 15:06

The following code snipit will get you all of the binary numbers from zero to fifteen:

string message = string.Empty;
for (int i = 0; i <= 15; i++)
{
message += Convert.ToString(i, 2) + "\r\n";
}
MessageBox.Show(message);

Tags:

Development

About

Jason Williams is a .NET developer in Lincoln, Nebraska.

The name "Centrolutions" came out of a long search for a domain name. The goal was to create a name that conveyed an ideology of writing software centered (Centr--) on a solution (--olutions) for a particular problem. In other words, it was the only name in a long list that wasn't already registered on the internet.

If you're looking for the products I have for sale, you should go here.