Always return positive value
Use this :
int PositiveNo = System.Math.Abs(NegativeNoHere);
Use System.Math.Abs
as documented here.
You're looking for Math.Abs
.
Use this :
int PositiveNo = System.Math.Abs(NegativeNoHere);
Use System.Math.Abs
as documented here.
You're looking for Math.Abs
.