cout<<"please enter your integer ";
cout<<'please enter your real number";
i need help after plzzz
If r is in your equation, r needs to be in your program. Any starting bracket (like your while loop) needs to have an ending bracket. What do you need in your while loop? You are adding a series of terms, so you are going to be creating a term inside of the while loop, then adding it to some larger sum. That sum variable needs to be initialized. Should it be initialized before, inside, or after the while loop? What should it be initialized to? What variable in your problem is the sum variable?