Cast Conversion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sololearn
{
class Program
{
static void Main(string[] args)
{
int x = 5;
double y = x + 0.2;
Console.WriteLine(y);
double a = 2.3;
int b = (int)a;
Console.WriteLine(b + 3);
}
}
}
Comments
Post a Comment