C & C++ language
Home
HTML
C&C++ language
Movies
Games
Softwares
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment