Académique Documents
Professionnel Documents
Culture Documents
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace Program
class Program
binary_val = num;
num = num / 10 ;
base_val = base_val * 2;
Console.ReadLine();
}
-----------------------------------------------------------------------------
-----------------------------
/*
*/
using System;
class myclass
int num;
num = int.Parse(Console.ReadLine());
int quot;
quot = num / 2;
num = quot;
Console.Read();
}
-----------------------------------------------------------------------------
-----------------------------
/*
*/
using System;
class program
decimalNumber = int.Parse(Console.ReadLine());
quotient = decimalNumber;
while (quotient != 0)
octalNumber[i++] = quotient % 8;
quotient = quotient / 8;
Console.Write(octalNumber[j]);
Console.Read();
}
-----------------------------------------------------------------------------
-----------------------------
/*
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace program
class Program
celsius = int.Parse(Console.ReadLine());
Console.ReadLine();
}
-----------------------------------------------------------------------------
-----------------------------
/*
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Celsius
{
class Program
double celsius;
Console.ReadLine();
}
-----------------------------------------------------------------------------
-----------------------------
/*
*/
using System;
ulong p, b = p = n & i;
while ((i >>= 1) > 0)
b |= p = n & i ^ p >> 1;
return b;
Console.WriteLine("Number\tGray");
Console.WriteLine(string.Format("{0}\t{1}", i,
Convert.ToString((long)grayEncode(i), 2)));
Console.Read();
}
-----------------------------------------------------------------------------
-----------------------------
/*
* C# Program to Obtain the Character from the User and Convert the Case of the
Character
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace casechange
class Program
char a;
int i;
a = Convert.ToChar(Console.ReadLine());
i=(int)a;
Console.ReadLine();