//@Author Damien Bell
#include <iostream>

using namespace std;
//void displayMenu();
double prodSum(double, double);

int main(){
    int choice=0;
    double x=0, y=0, product=0;
    char quit =' ';
    while (quit != 'y'){
        cout <<"Enter a value for the first number: ";
        cin >> x;
        
        cout <<"Enter a value for the second number: ";
        cin >> y;       
        
        product = prodSum(x,y);
        
        cout << "The product of "<< x << " * " << y << " = "<< product<<endl;
        
        
        cout <<"Do you want to quit? y/n ";
        cin >>quit;
    }
 return 0;
}

//void displayMenu(){
//   cout << "Press 1 to add" <<endl << "Press 2 to subtract" <<endl <<"Press 3 to multiply"<<endl;
//}

double prodSum(double a, double b){
    cout << "The sum of " << a << " + " << b << " = " << a+b <<endl;
    double product=0;
    product = a*b;
    return product;//20
}


