Page not loading? Try clicking here.
Placeholder

#235

Function 3 - Formative Assessment 5 1s - MB

Problems

Receive a natural number N not greater than 1,000,000 as input, and write a program using a recursive function that repeatedly divides the number by 2 if it is even, or by 3 if it is odd, and when the value becomes 1, prints the number of division operations performed up to that point.


Example

100
6

Source

자기주도C언어프로그래밍

You must sign in to write code.