Twitter Feed Facebook Google Plus Youtube

Adsense responsive

Recent Post below header

Thursday 14 March 2013

C PROGRAM: TO FIND SUM OF SERIES 1+2+3+------+10

CODING:
#include<stdio.h>
#include<conio.h>
void main()
{
 int i,sum=0;
 clrscr();
 for(i=1;i<=10;i++)
 {
  sum=sum+i;
 }
 printf("Sum of series= %d",sum);
 getch();
}


CODING

OUTPUT


For any query or suggestion please comment below...

No comments:

Post a Comment