mathematical code

 

Hallo,

I need the code for calculating a sum.

not: d=a+b+c

Thanks.

 
You have only three choices: Search for it, learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
 
int start()
{
  double a,b,c;
  ...

  if(Mysum(a,b,c)>10)
    {
       // do something example
    }
}


double MySum(double a,double b,double c)
{
 double d=a+b+c;
return(d);
}
 
tonny: Read the OP, he said
hansH: not: d=a+b+c
I think he wants to sum array elements.
 
WHRoeder:
tonny: Read the OP, he said I think he wants to sum array elements.
The answer i gave is still applicable as he can just alter the function a little i was just giving an idea.
Reason: