Help with C++ homework

I am having trouble with my c++ homework. I cannot figure out how to write a program that reads a sequence of integer inputs and prints cumulative totals.

Also, I have to write a program that reads a sequence of integer inputs and prints the adjacent duplicates. Help please !
Last edited on
Declare an integer with
int i;
you can read it with
cin >> i;
Please try to write the code. When you get stuck for 30 minutes, post your code along with any compiler errors and ask specific questions.
Topic archived. No new replies allowed.