0

Please help me because I want to change the type of two variables without errors

Hi friends, I wrote this program using java but .. When I change the type of the sum and number of the variables to be of type float, not .double, I'm getting errors in the code Please help me because I want to change the type of two variables without errors Knowing the code is correct, but there is a problem with Solo Learn, please help me by using another code editor. It is preferred with writing comments on the code for explanation thank you https://code.sololearn.com/c8wEgCna7SO5

20th Nov 2020, 8:34 AM
STOP
STOP - avatar
5 ответов
+ 5
https://code.sololearn.com/c11SbdDT1OVT/?ref=app See this and compare with your code I hope your doubt will clear
20th Nov 2020, 9:55 AM
Piyush
Piyush - avatar
0
You need to not only change the types of variables, but also need to change the scanner function to scanner.nextFloat().
20th Nov 2020, 8:37 AM
你知道規則,我也是
你知道規則,我也是 - avatar
0
@CarrieForle still give me error , can you write it as a code?
20th Nov 2020, 8:46 AM
STOP
STOP - avatar
0
Save your change to the code so I can see what you did.
20th Nov 2020, 8:56 AM
你知道規則,我也是
你知道規則,我也是 - avatar
20th Nov 2020, 9:01 AM
STOP
STOP - avatar