Computer Science, asked by nancybisoe2001, 10 months ago

Write an algorithm for sum of n numbers ​

Answers

Answered by KtU007
0

Answer:

s = n/2(1 +n)

where

n is the total number

Answered by akshaykokane2002
0

step1 : start

step2 : input number n

step3 : intialize ans=0

step4 : for(i=1;i<=n;i++)

       {

         Input num

         ans=ans+num

       }

step5:   print ans

step6 : stop

Similar questions