using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ikili
{
class Program
{
static void Main(string[] args)
{
int tut;
string tut2=" ";
Console.Write("Bir sayı girin: ");
int a = Convert.ToInt32(Console.ReadLine());
for (;;)
{
tut = a % 2;
tut2 = tut + tut2;
a = a / 2;
if (a<1)
{
break;
}
}
Console.WriteLine(tut2);
}
}
}
0 Yorumlar