0
I am trying to find out the sum of marks in a program.i have taken marks as double and sum as int.
tell me how can i convert double to int.so that i csn get the sum of marks.
1 Answer
+ 1
Type casting:
double d; int i;
i = (int) d;
tell me how can i convert double to int.so that i csn get the sum of marks.