请帮忙看一下下面代码错在哪里,谢谢!
编写一个程序,要求用户输入下限整数和一个上限整数,然后,依次计算从下限到上限的每一个整数的平方的加和,最后显示结果。程序将不断提示用户输入下限整数和上限整数并显示出答案,直到用户输入的上限整数等于或小于下限整数为止。程序运行的结果示例应该如下所示:Enter lower and upper integer limits: 5 9
The sums of the squares from 25 t0 81 is 255
Enter next set of limits:3 25
The sums of the squares from 9 t0 625 iS 5520
Enter next set of limits:5 5
Done
*******************************************************************************************************
#include "stdio.h"
#include "conio.h"
int main(void)
{
int m,n,i;
int sum=0 ;
printf("Enter lower and upper integer limits:");
scanf("%d%d",&m,&n);
while (m<n)
{
for (i=m;i<=n;m++)
sum+=i*i;
printf("The sums of the squares fom %d to %d is %d",m*m,n*n,sum);
sum=0;
printf("Enter next set of limits:");
scanf("%d%d",&m,&n);
}
printf("Done");
getch();
return 0;
}
**********************************************************************************