Write Program Reads Keypad Integer Calculates Following Number Given User Even Divide 2 Od Q43853259
Write a program that reads from the keypad an integer andcalculates the following: If the number given by the user is even,then divide it by 2. If it is an odd number, multiply it by 3 andadd 1.The program should repeat this procedure for the calculatednew result (which will be printed on the screen) until it reachesnumber 1. The program will also need to print out how many steps ittook overall.(C programming language)
Expert Answer
Answer to Write a program that reads from the keypad an integer and calculates the following: If the number given by the user is e…
OR