#include <stdio.h>
int main()
{
int m, n;
printf("Nhap so nguyen m va n (m<n): ");
int a = (n-m+1) * (m+n)/2;
printf("Tong cac so trong [%d %d] la: %d/n", m
, n
, a
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+IAoKaW50IG1haW4oKSAKewogICAgaW50IG0sIG47CiAgICBwcmludGYoIk5oYXAgc28gbmd1eWVuIG0gdmEgbiAobTxuKTogIik7CiAgICBzY2FuZigiJWQgJWQiLCAmbSwgJm4pOwogICAgCiAgICBpbnQgYSA9IChuLW0rMSkgKiAobStuKS8yOwogICAgcHJpbnRmKCJUb25nIGNhYyBzbyB0cm9uZyBbJWQgJWRdIGxhOiAlZC9uIiwgbSwgbiwgYSk7CiAgICByZXR1cm4gMDsKfQ==