#include "stdio.h" main() { int n,right0=0; printf("请输入一个正整数:"); scanf("%d",&n); while((n>>1)*2==n) { right0++; n=n>>1; } printf("right0=%d\n",right0); }