?? 6.9.txt
字號:
#include <stdio.h>
int main(void)
{
int n,a,b,x,sums;
printf("Enter lower and uppor integer limits:");
scanf("%d%d",&a,&b);
while(a<b)
{
for(n=0,sums=a*a;a<=b;n++,a++)
{
x=a*a;
sums+=x;
}
printf("The sums of the squares from %d to %d is %d\n",a-n,b,sums);
printf("Enter next set of limits:");
scanf("%d%d",&a,&b);
continue;
}
printf("Done\n");
return 0;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -