Advertisement
EricJohnson

array-screen

Apr 20th, 2012
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.53 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int screen(int pay[])
  4. {
  5. int response;
  6. cout << "Which pay range would you like to increment? (1-9): ";
  7. cin >> response;
  8. cout << "200_299:" << pay[0] << endl;
  9. cout << "300_399:" << pay[1] << endl;
  10. cout << "400_499:" << pay[2] << endl;
  11. cout << "500_599:" << pay[3] << endl;
  12. cout << "600_699:" << pay[4] << endl;
  13. cout << "700_799:" << pay[5] << endl;
  14. cout << "800_899:" << pay[6] << endl;
  15. cout << "900_999:" << pay[7] << endl;
  16. cout << "1000_over:" << pay[8] << endl;
  17. return response;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement