97. Pattern
#include<stdio.h>
int
i,j;
char
ch;
void
main()
{
for(i=0;i<5;i++)
{
for(ch='a',j=0;j<=i;j++,ch++)
{
if(j%2==0)
printf("%c",ch);
else
printf(" * ");
}
printf("\n");
}
}
Comments
Post a Comment