I found a error | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I found a error

So the code was this: int x = 15; int y = 4; int result = x / y; System.out.println(result);' You follow basic math evaluation: 15/4 = 3.75. However, the space would only let me type one number, and using 5 points for a hint the answer was 3. But, for this to work, int y would have to equal 5, not 4, as 15/5 = 3. Please fix this, Sololearn Devs.

5th Aug 2020, 2:06 AM
Nightmare
Nightmare - avatar
1 Answer
+ 1
int result =x/(float)y; do this
5th Aug 2020, 5:17 AM
Hima
Hima - avatar