C++ Programming Language: Simple, Short, and Straightforward Way of Learning C++ Programming by Sherwyn Allibang

C++ Programming Language: Simple, Short, and Straightforward Way of Learning C++ Programming by Sherwyn Allibang

Author:Sherwyn Allibang
Language: eng
Format: epub
Tags: c, object oriented programming, c programming, c language, cplusplus, basic c, c plusplus, c program, introduction to c, programming in c


Example:

#include<iostream>

#include<cmath>

using namespace std;

int main()

{

double x = 0;

cout<<"The exponential value of "<<x<<" is "<<exp(x)<<endl;

cout<<"The exponential value of "<<x+1<<" is "<<exp(x+1)<<endl;

cout<<"The exponential value of "<<x+2<<" is "<<exp(x+2);

fflush(stdin);

getchar();

return 0;

}

12. log() returns the natural logarithm (base-e logarithm) of a double number.

Syntax of log():

double log(<num>);

Range:

There is no range limit on the argument or return value.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.