Guest User

Untitled

a guest
Jan 23rd, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. double rate = 0.10; //start at 10%
  2. while(rate <= 0.25) { //go until its more than 25%
  3.     commission = sales * rate; //calculate the commision
  4.     cout << rate * 100 << "% Commission : $" << commission << endl; //print the commission
  5.     rate = rate + 0.05; //increase the commision
  6. } //end the loop
Add Comment
Please, Sign In to add comment