#include <iostream>
usingnamespace std;
void add(int s);
void subtract(int d);
void multiply(int p);
void divide(int q);
int main () {
//variables
int x; int y; int s; int p; int q; int d;
//user input
cout << "Enter an integer. \n";
cin >> x;
cout << "Enter another integer. \n";
cin >> y;
/* These are the variables that
the functions will use */
s = x + y;
p = x * y;
q = x / y;
d = x - y;
// Calling the functions
add(s);
subtract(d);
multiply(p);
divide(q);
return 0;
}
void add(int s) {
cout << "The sum is " << s << endl;
}
void mutiply(int p) {
cout << "The product is " << p << endl;
}
void subtract(int d) {
cout << "The difference is " << d << endl;
}
void divide(int q) {
cout << "The quotient is " << q << endl;
}
What's wrong with this, and how do I fix it?
Thanks for your help!