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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…