Thread: summation in c

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Quote Originally Posted by bertazoid View Post
    Hmmm, do you mean to use 'printf("%f\n")' within the curly parenthesis, or without? I think I only need to use it at the end to display the answer, but i guess if i put it inside as well, it would return a list of the terms, before the answer, right?
    Look at my post, homeboy. tabstop merely corrected your assertion about how the += operator works.

  2. #2
    Registered User
    Join Date
    Oct 2008
    Posts
    110
    Quote Originally Posted by master5001 View Post
    Look at my post, homeboy. tabstop merely corrected your assertion about how the += operator works.
    Ahh ok homeslice :P...this forum moves faster than abullet I can't keep up!

    Anyway, so in your code, you have used it within and without the parentheses...what is the difference between this, and just using it without?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sine series summation
    By kashya in forum C Programming
    Replies: 3
    Last Post: 12-17-2008, 08:00 PM
  2. partially summation
    By joerg in forum C Programming
    Replies: 0
    Last Post: 11-23-2007, 10:47 AM
  3. Help With Simple Summation...
    By TOPFLOR in forum C Programming
    Replies: 19
    Last Post: 08-09-2006, 10:50 AM
  4. Summation of an array using pointers
    By therminator53 in forum C Programming
    Replies: 3
    Last Post: 11-30-2003, 01:23 AM