I'm currently having some trouble making a C++ program for the collatz conjecture using a while loop nested inside of a for loop. After numerous rewrites, i've managed to get it to output the proper results, but only after one loop out of 10. I've tried going over it but I can't seem to see my problem; Do any of you have suggestions or ideas to what i've done wrong?