I need help with this. thank you... Read numbers from input containing a sequenc
ID: 3617548 • Letter: I
Question
I need help with this. thank you...Read numbers from input containing a sequence numbers andcount the number of negative values until 0 is read. Print how manynegative values are in the input.
If the input data contains -1 -2 -3 -4 -5 -6 0, then it should print 6.If the input data contains 1 -2 3 -4 5 -6 0, then it should print 3.It is possible that 0 is the first number in the input.I need help with this. thank you...
Read numbers from input containing a sequence numbers andcount the number of negative values until 0 is read. Print how manynegative values are in the input.
Explanation / Answer
please rate - thanks #include using namespace std; void print(int,int); int main() {int count=0,num1; coutnum1; while(num1!=0) {if(num1Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.