All pastes #383002 Raw Edit

Untitled

public text v1 · immutable
·published 2007-03-06 01:42 UTC
rendered paste body
double Get_NumShares()
{
    int NumShares = 0;
    do
    {
    cout << "What is the share price? ";  
    cin >> SalePrice;  
        if (SalePrice < 0)  
        cout << "Sale price must be > 0.";   
    } while (NumShares == 0);
        return NumShares;
};