2
Reply

regarding datatypes

Prasanth R

Prasanth R

Oct 31 2013 9:52 AM
795
int d =39/2;
decimal l=(decimal)d;
Console.Writeline(l);

The output is 19.5

i used double it shows 20(rounding off)

what should i do now to get output as 19 from 19.5

Answers (2)