public static void Main()
Console.Write("Enter a positive integer: ");
int num = int.Parse(Console.ReadLine());
string binary = Convert.ToString(num, 2);
int twosComplement = ~num + 1;
string binary2 = Convert.ToString(twosComplement, 2);
Console.WriteLine($"Binary Representation: {binary}");
Console.WriteLine($"Two's complement (negative): {binary2}");
Console.WriteLine($"Decimal representation of negative: {twosComplement}");