这个for语句的输出结果我不理解 求解释
											例如#include <stdio.h>main()
{
int x;
for(x=40;x>=10;x--)
x=x/2;
printf("%d",x);
}
我感觉是9课时运行出来是8
 2016-10-21 16:32
	    2016-10-21 16:32
   程序代码:
程序代码:
#include <stdio.h>
int main()
{
    int x;
    for(x=40;x>=10;x--)
    {
        printf("oldx=%d\n",x);
        x=x/2;
        printf("newx=%d\n",x);
    }
    printf("endx=%d\n",x);
    return 0;
}

 2016-10-21 16:35
	    2016-10-21 16:35
  [此贴子已经被作者于2016-10-21 16:41编辑过]

 2016-10-21 16:36
	    2016-10-21 16:36
   2016-10-21 16:36
	    2016-10-21 16:36
   2016-10-21 16:36
	    2016-10-21 16:36
   2016-10-21 16:50
	    2016-10-21 16:50
   
										
					
	 2016-10-21 17:00
	    2016-10-21 17:00
   2016-10-21 22:17
	    2016-10-21 22:17
   2016-10-23 23:49
	    2016-10-23 23:49
   2016-10-24 10:23
	    2016-10-24 10:23