How do I change the program so that it comes out of the while loop in case the entered value is the number Zero or negative? And
Hi friends, I wrote this program using java but .. 1- How do I change the program so that it comes out of the while loop in case the entered value is the number Zero or negative? 2- 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 3- Exactly what happens when we use the for command once and then the while-do command again instead of while, I have seen changes, but I could not define them because I want to write notes and learn that. Please write notes about the change that is happening 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