if(x>0)if(x>50)printf("ok\n");else printf("not ok\n");if(x>0){ if(x<50)printf("ok\n");}else printf("not ok\n");
if下如果有{}就执行{}中的语句,如果没有{}就执行if下的第一行语句