为什么最后s等于6?
#include"stdio.h"
main()
{
int k,j,s;
for(k=2;k<6;k++)
s=1;
for(j=k;j<6;j++)
s+=j;
}
printf("%d\n",s);
详解看图吧,有帮助麻烦点一下采纳。