#include<iostream>
using namespace std;
int main(){
int a,b;
int sum=0;
cin>>a>>b;
for(int i=1;i<=b;i++){
 sum=sum+i;
}
return 1;
}

 

 

#include<iostream>
using namespace std;
int main(){
int a,b;
int sum=0;
cin>>a>>b;
for(;a<=b;a++){
 sum=sum+a;
}
count<<a<<endl;
cout<<sum<<endl;
return 1;
}

 

 

1001_ios#include<iostream>
1001_ios
using namespace std;
1001_ios
1001_ios
int main () 
1001_#include_051001_i++_06
1001_i++_07{
1001_i++_08    
int i,n,sum;
1001_C_091001_i++_10    
while(cin>>n)1001_i++_07{
1001_i++_08        
for(i=1,sum=0;i<=n;i++)
1001_i++_08            sum
+=i;
1001_i++_08        cout
<<sum<<endl<<endl;
1001_i++_15    }

1001_i++_08    
return 0;
1001_#include_17}