For C++
Generate a random number. The random number may be negative,positive, or even zero. Perform the following steps 1024 times oruntil the number is 1. 1. multiply the number by 3 2. if the numberis odd then add 1 to it 3. if the number is even then divide thenumber 2
Expert Answer
An answer will be send to you shortly. . . . .