A program with all intergers yielding aresult of 1




Write a C program. All positive integers eventually yield a result of 1 when the following process is applied- if integer is even divide by 2, if integer is odd times by3 and add 1, repeat for resulting value.