Computer Science, asked by amamn24, 6 months ago

double discount=6/10; will print.. *​

Answers

Answered by Oreki
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 anindyaadhikari13
1

\star\:\:\:\sf\large\underline\blue{Answer:-}

Given code,

double discount =6/10;

or,

discount =0.0;(integer division, 6/10=0(

So,

it will print 0.0

Similar questions