Monday, March 11, 2013

Calculate percentage in c#

Here the example how to calculate percentage take datatype as double ;-

double x = 8;
 double y = 21;
 double i = x / y;
  i = i * 100;

No comments:

Post a Comment