i know this must be a simple problem, but i dont use modulus too much...and my book is no help...
i need to determine if the number is odd / even then do the correct func.
this is what i have...but it doesnt work right
//do - while x != 1
if ( x%2) //if even
x = x/2.0;
x = 3*x + 1;
cout << x << endl;