#include main(){int i,b,k=0;for(i=1; i<=4;i++){b=i%2;while(b-->=0)k++;}printf("%d,%d",k,b);
程序运行结果是:
k=6,b=-2