Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C++ (http://www.go4expert.com/forums/cpp/)
-   -   How can i write "" ln 3 "" on c++ ? (http://www.go4expert.com/forums/i-write-ln-3-cpp-t23577/)

Dimesh 15Oct2010 14:22

How can i write "" ln 3 "" on c++ ?
 
Hi.
-----
Thanks for reading ...

I want to write for example: ln 3

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

shabbir 15Oct2010 15:31

Re: How can i write "" ln 3 "" on c++ ?
 
You have to find the ASCII character for the same (assuming it exists)

virxen 15Oct2010 17:08

Re: How can i write "" ln 3 "" on c++ ?
 
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;
}



All times are GMT +5.5. The time now is 21:08.