LOGARITHM CPP SOURCE CODE
/*LOGARITHM.CPP*/
#include "calculator.h"
#include <iostream>
using namespace std;
#include <math.h>
void ScientificCalculator::logarithm()
{
double a;
cout<<"Enter the number: "<<endl;
cin>>a;
cout<<"The answer is "<<log(a)<<endl;
}
#include "calculator.h"
#include <iostream>
using namespace std;
#include <math.h>
void ScientificCalculator::logarithm()
{
double a;
cout<<"Enter the number: "<<endl;
cin>>a;
cout<<"The answer is "<<log(a)<<endl;
}
Comments
Post a Comment