
Hi :)
I am new in java, and I'm doing the exercises. I have a problem with a solution:
this how should to look my code, but I don't know how to solved :confused:
Pick some positive integer and call it n.
If n is even, divide it by two.
If n is odd, multiply it by three and add one.
Continue this process until n is equal to one.
I should make Hofstadter...
I do'n know how to type
"If n is even, divide it by two.
If n is odd, multiply it by three and add one."
thanks in advance...

Re: Hi :)
Post your best attempt and we'll gladly help. Google modulo, that will get you started.

Re: Hi :)