cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Sigma - summation
Sigma - summation
Apr 20, 2010 at 9:55am UTC
Upaka
(3)
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
Apr 20, 2010 at 9:57am UTC
Apr 20, 2010 at 10:30am UTC
Dufresne
(137)
You can use loop for this;
Simply;
1
2
3
4
5
int
i ,sum = 0 ; .. ..
for
( i = 0 ; i < n ; i++) sum += i ;
Apr 27, 2010 at 1:42pm UTC
Upaka
(3)
Hi hi Dufresne
Thanks alot.
Topic archived. No new replies allowed.