answersLogoWhite

0

n/2 times (n + 1)

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is the Program to find sum of natural number using recursion?

#include #define NUM 100 //since prog is to be written for adding 100 naturalint main(){int i,sum=0;for(i=1;i


How write algorithm for finding the sum first ten even number?

Sum = 0 For N = 1 to 10 Sum = Sum + 2*N Next N Print Sum


What is the c plus plus program for printing sum to n natural numbers?

main() { int i, n, sum=0; cout<<"Enter the limit"; cin>>n; for(i=0;i<=n;i++) sum=sum+i; cout<<"sum of "<<n<<" natural numbers ="<<sum; getch(); }


1 plus 3 plus 5 plus 7n how will you do this program?

Print "Type the upper limit (n) ?" Input n K = -1 WHILE K < = n K = K + 2 Sum = Sum + K WEND Print "The sum of all odd numbers up to "; n; "is "; Sum


Write a shell program that Adds the integers 1 to 100 and dislay a message?

SUM = 0: FOR N = 1 to 100: SUM = SUM + N: Next N: PRINT CHR$(11); "Sum ="; SUM: END


Write a program that uses a for loop to compute and print the sum of a given no of squares?

#include#include#includevoid main(){int i,n,sum=0;clrscr();printf("n=");scanf("%d",&n);for (i=1;i


Make a flowchart to print the sum of the square of all odd numbers from 10 to50?

step 1 : n = 11, sum = 0 step 2 : then sum = sum + n2 step 3 : n = n + 2 step 4 : if n > 50, go to step 6 step 5 : loop to step 2 step 6 : print sum step 7 : end


Write a program that calculates and prints the sum of the even integers from 2 to 30?

For N = 2 to 30 STEP 2 Sum = Sum + N Next N Print "The sum is "; Sum; ". Have a nice day. Come back and see us." END


Find the mean of n natural numbers?

Mean = (sum of the n numbers)/n


The variance of first n natural numbers is?

1 Sum of first n natural numbers = n(n+1)2[Formula.]2 Arthmetic mean of first n natural numbers = Sum of the numbers n[Formula.]3 = n(n+1)2n = n+124 So, the Arthmetic mean of first n natural numbers = n+12


What is the sum of the first 225 natural numbers?

Formula for sum of first natural number = n(n+1)/2 , here n=225 so, answer is 225(225+1)/2 = 25425


Can every natural number be expressed as a sum of Fibonacci numbers where no number is used more than once?

Yes.Since 1 is a member of the Fibonacci sequence, it is always possible. Any natural number, N, can be represented as a sum of a string of N ones.Yes.Since 1 is a member of the Fibonacci sequence, it is always possible. Any natural number, N, can be represented as a sum of a string of N ones.Yes.Since 1 is a member of the Fibonacci sequence, it is always possible. Any natural number, N, can be represented as a sum of a string of N ones.Yes.Since 1 is a member of the Fibonacci sequence, it is always possible. Any natural number, N, can be represented as a sum of a string of N ones.