Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in c++ Write a function log30 that takes a positive integer value n and returns lower bound log base_3 of it (Hint: Divide the number
in c++
Write a function log30 that takes a positive integer value n and returns lower bound log base_3 of it (Hint: Divide the number by 3 until its division by 3 becomes 0 and count how many times you divided). Sample output1: Enter n : 9 log3(9)=2 Sample output2: Enter n:81 log3(81)=4Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started