Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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(num1