Skip to main content

C#: Program #3 (Explicit Conversion)

using System;

namespace Explicit_Casting
{
    class Program
    {
        static void Main(string[] args)
        {
            float no = 21.22f;
            int number = (int)no;

            Console.WriteLine(number);
            Console.ReadKey();
        }
    }
}

Comments

Popular posts from this blog