Thursday, October 10, 2013

FLOWCHART TO FIND SUM OF FIRST N NUMBERS


17 comments:

  1. I think the back arrow denotes '=' sign..

    ReplyDelete
  2. I is loop control variable
    I starts with 0
    incremented by 1
    less than equal to N-1

    ReplyDelete
  3. if N==6 then what happend explain plz

    ReplyDelete
  4. flowchart to find the sum of any five positive number

    ReplyDelete
  5. Sir your program always fails to add the last natural number. For eg, if I take the sum of first 3 natural numbers, I'll get 1+2 only. It doesn't add 3. But if you assign I=I+1, before the sum Operation, then it will be correct.

    ReplyDelete
  6. Put Condition as " i<=N" then sum=sum + i, will give the desired result

    ReplyDelete
  7. What if it is 10? Explain plsss thanks

    ReplyDelete
  8. What if it is 10? Explain plsss thanks

    ReplyDelete
  9. What if it is 10? Explain plsss thanks

    ReplyDelete
  10. 'I' denotes the position or the number??

    ReplyDelete