break case

#include<stdio.h>
main()
{
 int g =3;
 switch (g){
   case 4:
   case 3:
         printf("haha");
         break;
   case 2:
         printf("haha");
         break;
   default: printf ("haha");
}
printf("##########");
 switch (g){
   case 4:
   case 3:
         printf("haha");
   case 2:
         printf("haha");
   default: printf ("haha");
}
printf("##########");
 switch (g){
   case 4:
   case 3:
   case 2:
         printf("haha");
   default: printf ("haha");
}

}

haha##########hahahahahaha##########hahahaha

posted @ 2017-08-29 13:17  扫驴  阅读(224)  评论(0编辑  收藏  举报