NBA - Boston Celtics

Saturday, 20 October 2012

SUM OF FIRST !) NATURAL NO.s


#include<iostream.h>
#include<conio.h>
void main()
{
int sum=0;
for(int i=1;i<=10;i++)
sum=sum+i;
cout<<"sum of first ten natural no. is = "<<sum;
}

No comments:

Post a Comment