Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double rate = 0.10; //start at 10%
- while(rate <= 0.25) { //go until its more than 25%
- commission = sales * rate; //calculate the commision
- cout << rate * 100 << "% Commission : $" << commission << endl; //print the commission
- rate = rate + 0.05; //increase the commision
- } //end the loop
Add Comment
Please, Sign In to add comment