Quote:Please help me, to solve this C# 5/2 = 2?
double up = 5/2.0; // or double up = 5.0/2;
int down= 5/2; // down=2 int mod = 5%2; // mod =1 int down= 6/2; // down=3 int mod = 6%2; // mod =0
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)