Hello, I’m working on this task:
Apply several explicit type conversions (casts) to make the code compile. Do not change any string constants or variable names.
Here is my code:
namespace PrimitiveTypes
{
class CrazyResult
{
static void Main(string[] args)
{
short b = 200;
short c = 10;
byte a = (byte)b + c;
int d = (int)Math.PI + a;
Console.WriteLine($"The crazy result is {d}");
}
}
}
Can anyone please help me to solve it?