-->

Facebook

Jasper Roberts - Blog
Showing posts with label sum of n numbers(while loop). Show all posts
Showing posts with label sum of n numbers(while loop). Show all posts

Monday, October 13, 2014

WRITE A C PROGRAM TO CALCULATE SUM OF N NUMBERS.

#include<stdio.h>
#include<conio.h>

void main()
{
int i=1,sum=0,no;
clrscr();

printf(“Enter the number:”);
scanf(“%d”,&no);

while(i<=no)
{