Write Program To Addition Of N Number Using C Programming -99webcode
#include<stdio.h>
int main()
{
int i,n,sum;
printf("Enter number till you want the sum of addition\n");
scanf("%d",&n);
for(i=0;i<=n;i++)
{
sum =sum+i;
}
printf("sum of all number between you entered number is %d :",sum);}
return 0;
}
output :
Enter number till you want the sum of addition :10
Sum of all number between number is : 55