MODULUS SOURCE CODE
/*MODULUS.CPP*/
#include "calculator.h"
#include <iostream>
using namespace std;
void ScientificCalculator::modulus()
{
cout<<"Enter the number: "<<endl;
cin>>a;
cout<<"Enter the other number: "<<endl;
cin>>b;
float mod;
mod = a % b;
cout<<"The answer is "<<mod<<endl;
}
#include "calculator.h"
#include <iostream>
using namespace std;
void ScientificCalculator::modulus()
{
cout<<"Enter the number: "<<endl;
cin>>a;
cout<<"Enter the other number: "<<endl;
cin>>b;
float mod;
mod = a % b;
cout<<"The answer is "<<mod<<endl;
}
Comments
Post a Comment