Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedin 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)=4

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What is database?

Answered: 1 week ago

Question

What are Mergers ?

Answered: 1 week ago