Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Problem: binary
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { Console.WriteLine("Enter the number you wish to get the binary representation !"); int x = 0; x = Convert.ToInt32(Console.ReadLine()); while (x <= 0) { Console.WriteLine("O or Negative numbers are not allowed. Try Again..."); x = Convert.ToInt32(Console.ReadLine()); } string r = Convert.ToString(x, 2); Console.WriteLine("Binary Representation of " + x + " is: " + r); Console.ReadKey(); } } }
run
|
edit
|
history
|
help
0
DateTime Parser
Unary example
Expression Tree - Demo2
Intuit // C# // listing_4.6 (if_then_else // Shooting on the target)
Testing 006
hello world
Hexagon Tringle
Problem Name_single_digi
C# Truly Random
Decimal test