Professional Documents
Culture Documents
Create A C++ Function That Computes The Sum, Diff, Prod, Quotient, and Modulus
Create A C++ Function That Computes The Sum, Diff, Prod, Quotient, and Modulus
Create A C++ Function That Computes The Sum, Diff, Prod, Quotient, and Modulus
*This is only an example, you can input any number for a and b
INPUT:
#include <iostream>
int r = a + b;
return r;
int s = a - b;
return s;
int t = a*b;
return t;
int u = a/b;
return u;
int v = a%b;
return v;
int main()
int a, b;
cout<<"b: ";
cin>>b;