Boltu vs Balti

@touhidurrr
#include

using namespace std;

int main() {
int a , b , sum = 0 ;
while(cin >> a >> b ){
sum = 0 ;
for(int i = a ; i <= b; i++){
sum+=i;
}

cout <<"Sum of"<<" "<<a <<" "<<"to"<<" "<<b<<" "<<"is"<<" "<<"->"<<" "<< sum<<';'<<endl;}

}
what’s wrong in this code ; its get wrong answer for the 2nd test case

In the output section, N should be smaller than M…

Make sure in your output, N is smaller than M.