#include <stdio.h>
int main()
{
int i = 0 ;
char ch = '*';
for (int a=1;a<=4;a++)
{ switch (a )
{case 1 :
printf("%c\n",ch );break;
case 2:
printf("%c%c%c\n",ch ,ch,ch);break;
case 3:
printf("%c%c%c%c%c\n",ch,ch,ch,ch,ch);break;
case 4:
printf("%c%c%c%c%c%c%c\n",ch,ch,ch,ch,ch,ch,ch);break;
}
}
return 0;
} |
|