![](https://i-blog.csdnimg.cn/blog_migrate/8f900a89c6347c561fdf2122f13be562.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/961ddebeb323a10fe0623af514929fc1.gif)
1 #include <stdio.h> 2 #include <stdlib.h> 3 4 5 void main(){ 6 int i; 7 scanf("%d",&i); 8 switch(i){ 9 case 1:printf("i=%d*\n",i);break; 10 case 2:printf("i=%d**\n",i); 11 case 5:printf("i=%d*****\n",i);break; 12 case 4:printf("i=%d****\n",i); 13 default:printf("i=%d***\n",i); 14 } 15 }