It works thanks but I see my code and your codes logic is the same but why does yours work but mine doesn't?
Type: Posts; User: poppoff
It works thanks but I see my code and your codes logic is the same but why does yours work but mine doesn't?
hello im a begginer in java and im trying to "If n is even, divide it in half. If it is odd, multiply it by 3 and add 1. Repeat this operation until reaching 1."
but my output becomes like this
...