Program sum of "n" number in c | n number program in c || dot clu
today we learn about sum of n number in c.
C is used a lot in embedded hardware programming where resources are scarce. Linux kernel is written in C because, according to Linus Torvalds, C++ is a horrible language.
Download C++ software Link || Dev C++ click On the Link Below.
Link: http://linkshrink.net/7Cd8Z1
source code
- #include<stdio.h>
- int main()
- {
- int n,sum=0,c,value;
- printf("Enter the number of integers you want to add\n");
- scanf("%d",&n);
- printf("Enter %d integers\n",n);
- for(c=1;c<=n;c++)
- {
- scanf("%d",&value);
- sum=sum+value;
- /*adding each no in sum */
- }
- printf("Sum of Entered integers = %d\n",sum);
- return 0;
- }
ALSO Watch Video
I Hope you like Our Video..
dotclu
dot clu
=====Also Watch Our other Video========
Get started With C || First Program in C || C tutorial || Hello world program in C || dot clu
link: https://youtu.be/Oqyoe1nJNjE
Install Virtual BOX in your PC | create Virtual Machine | downloading link in description || dot clu
link:https://youtu.be/x9ijUzOUyiY
How to Install Hyper V in windows 7?
link: https://youtu.be/Y64Dr3YNCSw
What is Bitcoin? || Earn Bitcoin money with your Android phone || 100% working || dot clu || Hindi
link: https://youtu.be/HYQgDQrSC1I
Comments
Post a Comment