Guest User

Guest User

  • Tech Writer
  • 34
  • 4.9k

Console Application HELP

Feb 14 2014 6:59 AM
 Hi everyone
This is my question HELP please... 
 
Write an algorithm to fill 6 positions in a vector, integer, values ​​between 20 and -20, and the print on the screen. Then will be shown how many numbers read are positive values​​.
 
 The output must be like this:
 
Insert an value between 20 and -20: -10 
Insert an value between 20 and -20: 8
Insert an value between 20 and -20: 9
Insert an value between 20 and -20: 10
Insert an value between 20 and -20: 5
Insert an value between 20 and -20: 6
 
Inserted numbers
 
 
   Inserted Value: -10 
   Inserted Value: 8
   Inserted Value: 9
   Inserted Value: 10
   Inserted Value: 5
  Inserted Value: 6
 
-> There are 5 positive values 

Answers (4)