0

Question for a beginners code in Java

Does anyone know, why I have to define the value of factor1 again in line 25? https://code.sololearn.com/cj43X1012XIN/?ref=app

5th Jan 2019, 12:10 PM
magischer Keks
3 Answers
+ 2
Because factor1 can be never initialize. Change in line 8 int factor1 =0, factor2=0;
5th Jan 2019, 12:22 PM
Michal
Michal - avatar
+ 2
Nie ma problemu 😄
5th Jan 2019, 12:31 PM
Michal
Michal - avatar
+ 1
Thank you very much, I've changed it!đŸ€—
5th Jan 2019, 12:29 PM
magischer Keks