Question: Leur that repest a Post ve integer as pipit te the number is even, suide it by 2 tt not, mutip the wmber by 3
Leur that repest a Post ve integer as pipit te the number is even, suide it by 2 tt not, mutip the wmber by 3 and then add t Repaat ts poces wth the resuling number and tomtne rependhng onil the 1 Heached the ls reached, e program should display he number of iterations repind 40each tke number 1 When the pgmam reperts inpot, tshaul check thai the user lpuis a posergaer Han A. f o an emer messa ge should be genenaled
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
