- 2
why can't the answer be 6.0 ?
3 odpowiedzi
+ 1
Because it returns ant Int (integer). That means numbers like : 1 or 10 or 0 or 66. Numers with no decimals. If you wanna return a decimal number, you would use a float or a double
0
What do you mean?
0
since the data type specified is double so the answer can be 6.0