@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