Multiple Choice Question

Quiz Guidelines

 

QID: 
279
Question: 

Given the following code snippet:

int rate = 10;
int t = 5;
XXX amount = 1000.0;
for(int i=0; i<t; t++){
amount = amount*(1 - rate/100);
}

What can XXX be?

Select 1 option

A. int
B. long
C. only double
D. double or float
E. float

Q&A Set: