C++ Vector Number input and output
Create a vector that allows the user to enter as many numbers as they wish (assume they will enter at least 1 number). The user will enter non-negative numbers (greater than or equal to zero) one at a time. When the user wishes to no longer enter numbers, the user should enter -1 to signal they are done.
When the user is done entering numbers, print in order:
- How many numbers the user entered.
- The numbers the user entered in order.
- The smallest number they entered.
- The largest number they entered.
- The first number they entered.
- The last number they entered.
6 years ago
10
Answer(0)
other Questions(10)
- HUMAN NUTRITION assignment
- Which of the following guidelines should be followed for creating a template that supports effective visual communication?
- W1 D (C)
- Watch Hans Rosling's video about the rise of Asia
- Week 7: Mini-Paper - Our "Digital Nation" – Pervasiveness, Social Networking, And Mobile Devices
- rush writing
- BUS 517 Week 6 Assignment 1 Project Proposal Initiating & Planning
- hw week 6
- Essay four metaparadigms
- Week 5!