Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case 5:
- {
- if (top == 0){
- cout<< "\n##Stack is Empty!";
- }
- else
- {
- for (x = 0; x < top; x++)
- sum += arrstack[x];
- ave = sum / top;
- cout << " Average: " << ave << endl;
- }
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement