1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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,285
    Likes Received:
    364
    Trophy Points:
    83
    You have to find the ASCII character for the same (assuming it exists)
     
  3. virxen

    virxen New Member

    Joined:
    Nov 24, 2009
    Messages:
    387
    Likes Received:
    90
    Trophy Points:
    0
    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