Program to illustrate the exp( ) function



    #include <iostream.h>
    #include <math.h>                      // defines the exp( ) function
    #include <conio.h>
   
    void main ( )
    {
         double result;
        double x = 2.0 ;
        result = exp ( x ) ;
        cout<< "\n The result is : "<< result ; 
        getch ( ) ;
    }

0 comments:

Post a Comment

 
 
 
 


Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies|