title: How to write a log base 10 function in c++?
body: <p>I know that it may seem a duplicate question, but I could not find my answer in previous questions. 
  I mean how to write a log base 10 function by simple loops and not using built in log function in c++. </p>