Why won't either of these work in C# ??
// Expected: 0.5, Output: 0
Console.WriteLine("Result #1: " + (50 / 100));
int iFifty = 50;
int iOneHundred = 100;
Console.WriteLine("Result #2: " + (iFifty / iOneHundred));
See Question&Answers more detail:os