fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int sellings, x, y, z;
  6. x = 25;
  7. y = 45;
  8. z = 70;
  9.  
  10. cout << "Please enter your sells:" << ' ' << endl;
  11. cin >> sellings;
  12.  
  13. if (sellings >= 0 && sellings <= 8)
  14. {
  15. cout << "Begginer" << ' ' << sellings * x + 800;
  16. }
  17.  
  18. else if (sellings >= 9 && sellings <= 12)
  19. {
  20. cout << "Intermediate" << ' ' << sellings * y + 800;
  21. }
  22.  
  23. else if (sellings >= 13 && sellings <= 18)
  24. {
  25. cout << "Advance" << ' ' << sellings * z + 800;
  26. }
  27. return 0;
  28. }
  29.  
Success #stdin #stdout 0.01s 5408KB
stdin
3
stdout
Please enter your sells: 
Begginer 875