C Program to Calculate the Sum of Natural Numbers From 1 to N

preview_player
Показать описание

Lets write a C program to calculate sum of all natural numbers from 1 to N, using while loop.

C Programming Interview / Viva Q&A List

C Programming: Beginner To Advance To Expert
Рекомендации по теме
Комментарии
Автор

what is the goal or job of the 0 sum? I couldn't understand why is it important to add it with count if it's 0.

Name-bbwo
Автор

write a program to find the sum of all non-prime numbers from m and n using the concept of passing pointers to function. pass addresses of m, n and sum integers from the main () function to the user defined function: calculate () [function is not returning any value], and display the sum in the main () function in C language...sir give the answer for this question

Artbyruchika
Автор

Please make a video same for array sum?

mohdshadab