double discount=6/10; will print.. *
Answers
Answered by
3
Answer:
0.0
Explanation:
Considers 6 and 10 as integers and calculates the integer value as 0 and as it is stored in a double variable, it becomes 0.0 .
Answered by
1
Given code,
double discount =6/10;
or,
discount =0.0;(integer division, 6/10=0(
So,
it will print 0.0
Similar questions
Physics,
3 months ago
Math,
3 months ago
Science,
3 months ago
English,
6 months ago
Political Science,
10 months ago