Menu

C program to Calculate the value of N time Addition of N term


Calculate the value of N time

Hello dear, this program is the same as factorial Programming in C. Here when you enter any Integer Number then you will get output like. Ex. If you enter 5 then how your result will working Inside 5+4+3+2+1 and then calculated and print the total value of the  N term and Calculate the value of N time.

C program to calculate and print the value of N

#include <stdio.h>

int main()
{

    long int i, n;
long int sum = 0;

    printf(“\nEnter the value of n:- “);
scanf(” %ld”, &n);

    for(i = 1; i <= n; i++)
{
sum = sum + i;
}

printf(“\nSum = %ld\n\n”, sum);

    return 0;
}

Wap in C to calculate the value of N

Calculate the value of N time

Calculate the value of N time

Sum of N number in C

Calculate the value of N time

Calculate the value of N time

END

Stack program in C  (clickHere)

Prime Factor in C  (ClickHere)

Note:- Maybe sometime above code doesn’t get user-friendly output, in codeblock ‘or’ any other EDITOR, All of C & C++ program tested in DOS compiler Turbo C.

Also Read

Types of functions in C    Read Here

I hope you will understand better if you study at M.U, in the exam of M.U you know how important this “Storing data in Stack in C

. So please don’t forget to give your valuable feedback. Go in the comment section and Give us some feedback about it. Storing data in Stack in Cor My website.

Our team check your every Comment per day Because your one feedback helps us in growing Thesmolt

I request you if you have any doubt or question regarding our site, then please don’t hesitate. We always waiting for your Suggestion.

Note:- If you want to Download This article’s in PDF form, then simply go (Top or Bottom of) Right corner and click on the PRINT icon, and it’s saved as a PDF of  Storing data in Stack in C

Addition of N term

For further questions, you can contact us Via mail [email protected]  otherwise, Our Help Page and Contact us Page, which is included below. I hope I’ll able to say all the possible ways to reach us. Or Download My Android Application Below Download Button.

thesmolt App


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Learn For Free.