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;
}

Comments

Popular posts from this blog

Scientific Calculator Project Proposal