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
5 ответов
+ 5
https://code.sololearn.com/c11SbdDT1OVT/?ref=app
See this and compare with your code I hope your doubt will clear
0
You need to not only change the types of variables, but also need to change the scanner function to scanner.nextFloat().
0
@CarrieForle still give me error , can you write it as a code?
0
Save your change to the code so I can see what you did.
0
https://code.sololearn.com/cQ84120Yw7YM
@CarrieForle