Пример программы для расчета конвертации доллара в центы.
static void Main(string[] args)
{
double dollar_amount;
int cents;
// int compute_cents;
Console.Write("Enter dollar amount :");
dollar_amount = Convert.ToDouble(Console.ReadLine());
cents =(int) (dollar_amount * 100);
Console.WriteLine("{0} $ = {1} ¢",dollar_amount,cents);
Console.ReadLine();
}
