C program to find the sum of all odd integers between 1 and n
Answers
Answered by
0
Step-by-step explanation:
sn=n/2(2a+(n-1)d)
Sn=n/2(2+(n-1))
=n/2(n+1)
is the sum of all interger between 1to n
Similar questions