using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TypeConversion
{
class Program
{
static void Main(string[] args)
{
double d = 2500.25;
int a;
a = (int)d;
Console.WriteLine(a);
Console.ReadLine();
}
}
}
Output:
No comments:
Post a Comment