?
What will be the output of the following C# code snippet?
What will be the output of the following C# code snippet?
class Program
{
static void Main(string[] args)
{
double x = 3.14;
int y = (int) Math.Abs(x);
Console.WriteLine(y);
}
}
class Program
{
static void Main(string[] args)
{
double x = 3.14;
int y = (int) Math.Abs(x);
Console.WriteLine(y);
}
}
Join the Discussion
Login to post a comment or share your explanation.
Login