#include"iostream.h"
main()
{
int sum,i;
sum=0;
cout"please input n:";
cin>>n;
for(i=1;i<=n;i++)
sum=sum+i;
cout<<"sum="<<endl;
}
main()
{
int sum,i;
sum=0;
cout"please input n:";
cin>>n;
for(i=1;i<=n;i++)
sum=sum+i;
cout<<"sum="<<endl;
}