现在的情况是能让代码贴上去以后缩进格式非常标准,如下所示
#include<stdio.h>
#include<math.h>
#define SUM 667
int main()
{
int t,n=1,sq,x1,x2;
while((t=SUM*SUM-4*120*n*n)>=0)
{
sq=(int) sqrt(t);
if(sq*sq==t && (SUM+sq)%2==0)
{
x1=(SUM+sq)/2;
x2=(SUM-sq)/2;
if(x1>0 && x2>0 && x1%n==0 && x2%n==0)
printf("the two numbers are %d,%d\n",x1,x2);
}
n++;
}
return 0;
}
这种功能也产生一些副作用:粘贴以后所有HTML修饰都消失、有的浏览器无法粘贴