whats wrong with this function
when I invoke it in main and run it instead of having any output it just says program exited normally
Code:
double CalculateShippingCharges( int pounds, int ounces )
{
while (ounces >= 16)
{
pounds++;
ounces - 16;
}
cout << pounds;
cout << ounces;
return 0;
}
when I invoke it in main and run it instead of having any output it just says program exited normally