#include <stdio.h>
long int sum(long,long);
int main(void)
{
long int n,m;
scanf("%d %d",&n,&m);
printf("The sum from %d to %d is %d\n",n,m,sum(n,m));
return 0;
}
long int sum(long n,long m)
{
if(n==m)
return m;
else
return m+sum(n,m-1);
}
#include <stdio.h>
long int sum(long,long);
int main(void)
{
long int n,m;
scanf("%d %d",&n,&m);
printf("The sum from %d to %d is %d\n",n,m,sum(n,m));
return 0;
}
long int sum(long n,long m)
{
long temp;
if(n<m){temp=n;n=m;m=temp;}
if(n==m)
return 2*m;
else
return 1+sum(n-1,m);
}