#include<stdio.h>
int main()
{
int limit,num,sum=0,i;
printf("enter a number");
scanf("%d",&num);
for(i=0;i<=num;i++)
sum+=i;
printf("%d",sum);
return 0;
}
The sum of the first 10 natural numbers is 51, with an average of 5.1
The sum of the first 57 natural numbers is 1,625.
50.5
Here it is: 500,001
The sum of the first 10 natural numbers is 51.
First you will need to have some basic programming knowledge. You can use this to help make the program that is needed.
Write an. Algorthim. To. Find the. Sum. Of. First15 natural. Numbers
The sum of the first 10 natural numbers is 51, with an average of 5.1
The sum of the first 57 natural numbers is 1,625.
50.5
Here it is: 500,001
The sum of the first 10 natural numbers is 51.
The sum of the first n natural numbers is n*(n+1)/2 There are n numbers so their mean = (n+1)/2
Yes
I have found the coefficient of variation of the first natural numbers and also other functions.
program to find maximum of two numbers using pointers
xsdsd