#include<iostream.h>
#include<conio.h>

void main()

{
clrscr();
int i,sum,n;
cout<<"\n\tHow natural number?\t";
cin>>n;
for(i=1;i<=n;++i);
{
cout<<"\n\t"<<i<<"\t\n";
sum=sum+i;
}
cout<<"\n\t"<<"The Sum of First"<<"\t"<<n<<"\tnatural number is :"<<sum<<"\n";
getch();
};


Download Now :-Sum Of Natural No.
Designed By Blogger Templates | Templatelib & Distributed By Blogspot Templates