Tuesday, February 4, 2014

ExplicitConversion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ExplicitConversion
{
    class Program
    {
        static void Main(string[] args)
        {
            double d = 656.67;
            int i;

            i = (int)d;
            Console.WriteLine(i);
            Console.ReadKey();
        }
    }
}

0 comments:

Post a Comment