+ 1
Finding factor
My program has to prompt the user for even multiple of 13 more then 100, and then evaluate it and give an answer if the input was correct, print it and tell another factor. Everything works, but my factor is always 0. What is wrong? https://code.sololearn.com/cUqqapFeqG0m/#java Thank you in advance!
2 Respuestas
+ 1
You calculate the factor or number2 by doing %13 of the number that they user has given. But because that number is a multiple of 13 this Will always give 0. I think you wanted to type number/13 instead :)
+ 2
Mother of God! XD I didn't have a sleep from yesterday) Much appreciated!