Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #72.7K
I have this problem... Ive gotten the codes however, i cant seems to get the output correctly.. This is my program: [code=cplusplus] int n; cin>>n; //reading in value of n if (n==1) { cout<<n; //if n=1, print out 1 } else if (n%2) { n = 3*n + 1; //if … |