title: Name To Decimal To Binary Algorithm
body: <p>I am trying to make a program that asks you about your name, after that it shows the number of every character of your name according to ASCII table. Now I want each number to be converted in to binary and .... I am stuck! :)
  Please some help!
  Here is my code:</p>
  
  <pre><code>using System;
  
  
  namespace DecimalToBinary
  {
     class DecimalToBinary
     {
         static void Main()
         {
             Console.WriteLine("Pleasse, enter your name:");
             string name = Console.ReadLine();
             foreach (char ch in name)
             {
              Console.WriteLine("Character {0} is {1} according to ASCII      table.", ch, (int)ch);                
             }
             foreach (char ch in name)
             {
                int decNumber = ch;
                Console.WriteLine(decNumber);                
             }
             Console.WriteLine("Enter a number:");
             int number = Int32.Parse(Console.ReadLine());
             string binary = Convert.ToString(number, 2);
             Console.WriteLine(binary);             
       }
    }
  }
  </code></pre>