Sigma - summation

Hi I am very very new to C++ and I wanna write few formulae which consist of "Sigma - summation" mathematical function.
If someone knows how can I write, please reply.
Thanks

Last edited on
You can use loop for this;

Simply;
1
2
3
4
5
int i ,sum = 0 ;
..
..
for( i = 0 ; i < n ; i++)
   sum += i ;


Hi hi Dufresne
Thanks alot.
Topic archived. No new replies allowed.