ADD.CPP SOURCE CODE FOR SCIENTIFIC CALCULATOR
/* ADD.CPP*/
#include "calculator.h"
#include <iostream>
using namespace std;
void ScientificCalculator::add()
{
cout<<"Enter the two numbers: "<<endl;
cin>>a>>b;
int add;
add = a + b;
cout<<"The answer is "<<add<<endl;
}
#include "calculator.h"
#include <iostream>
using namespace std;
void ScientificCalculator::add()
{
cout<<"Enter the two numbers: "<<endl;
cin>>a>>b;
int add;
add = a + b;
cout<<"The answer is "<<add<<endl;
}
Comments
Post a Comment