How to solve this equation using functions in c++;
y=x/2+3∑(i=1,m){2*i+b)-4∑(i=1,m+2){i/a-b)
please who can solve it today it will be so helpful for me.
Regards

Would showing you how to make a function add two variables help?

Sorry, we're not here to do your work for you. If you have a specific question (aside from "Can you do it for me?"), we'll be happy to help.

The algorithym is the same as if you were doing it with pencil and paper. Break it down into smaller and smaller pieces, then rebuild it.

int i, m;
double y, x, b, a, first, second, third;

//intermediate calculations to get first, second, and third go here

//then add them up to get y
y = first + second + third;

I appreciate your effort and it was so helpful.Regards your are the best.
Thank you again

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.