2
Answers

regarding datatypes

Prasanth R

Prasanth R

11y
1.1k
1
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)