C Program to Print Sum of N Natural Numbers
In this tutorial, we are going to make a C Program to print the sum of N natural numbers with step by step full complete explanation. C Program to print the sum of N natural numbers. #include<stdio.h> #include<conio.h> void main() { int input, i, sum=0; printf(“Enter any number:”); scanf(“%d”, &input); for(i=1;i<=input; i++) sum=sum+i; printf(“sum of … Read more