Write an algorithm for sum of n numbers
Answers
Answered by
0
Answer:
s = n/2(1 +n)
where
n is the total number
Answered by
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