Question: Q 3 . Logarithm ( Iterative algorithm ) ( 1 5 pts ) Get a user input of a positive integer number: A Get a
Q Logarithm Iterative algorithm pts
Get a user input of a positive integer number: A
Get a user input of zero or a positive integer number: B
A is a base and B is an exponent of A
Calculate C Log AB
Print C
Define variables A B and C specifically these names
Pseudo code may have a bug. Please make sure the correctness
Func Main :
Get A and B
C
While B
B DivB A
C
Print C
EndMain
Func DivE F
V
While E
E E F
V
Return V
EndDiv
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
