Calculate natural logarithm

From , 3 Years ago, written in C, viewed 221 times.
URL https://pastebin.vip/view/100d9f30
  1. #include <syslib.h>
  2. #include <math.h>
  3.  
  4. main()
  5. {
  6.         float x;
  7.         clrscr();        // clear screen
  8.         textmode ( 0x00 );  // 6 lines per LCD screen
  9.  
  10.         printf ( "ln(e)=%f\n", log ( M_E ) );  // M_E is 2.71828..., defined in math.h
  11.  
  12.         getchar();
  13.         return 0;
  14. }
  15.  

Reply to "Calculate natural logarithm"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website