I am having a problem to do the coding for the following:
A repetition structure that will prompt the user for a value, read that value into the variable price, increment the variable total by the value entered, and continue repeating the process until total is greater than 10.00 or until the user enters 0 as a value to indicate that they are finished entering values.

Would anyone be willing to help me out a little. This is what I come up with so far:

#include <iostream.h>
int main()
{
for(int x=0;x<10;x++)
{
cout<<x<<endl;
}

return 0;
}