How can i write "" ln 3 "" on c++ ?

Discussion in 'C++' started by Dimesh, Oct 15, 2010.

  1. Dimesh

    Dimesh New Member

    Joined:
    Jul 12, 2010
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    Hi.
    -----
    Thanks for reading ...

    I want to write for example: ln 3

    Is there is any command or function for it ...!
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    You have to find the ASCII character for the same (assuming it exists)
     
  3. virxen

    virxen Active Member

    Joined:
    Nov 24, 2009
    Messages:
    387
    Likes Received:
    90
    Trophy Points:
    28
    maybe you want this

    Code:
    #include<stdio.h>
    #include<math.h>
    int main(){
        double e = 2.718281828;
        double x = log(e);
        printf("%f",x);
        getchar();
        return 0;
    }
    
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice