Activity 3
Write a c++ program that will enter a positive integer no, and compute in the following sequence: If the number is even, halve it; if it's odd, multiply by 3 and add 1, then print the value of the final value of the number.
Submit your activity Here
upload the .cpp file.
Just fill-up necessary information.
Good Luck!
No comments:
Post a Comment