Program to add n integer numbers

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int sum=0,n;
cout<<"Enter how many no.";
cin>>n;
for(int x=1;x<=n;x++)
    {
        sum=sum+x;
    }
cout<<"TOTAL is "<<sum;
getch();
}