Program
#include<stdio.h>
main()
{
int i,j;
for(i=0;i<=6;i++)
{
for(j=0;j<3;j++)
{
if(i==0 || i==6)
printf("**");
else if(i==3 && j<2)
printf("**");
else if(j==2)
break;
else
{
printf("*");
break;
}
}
printf("\n");
}
}
Output
******
*
*
****
*
*
******
#include<stdio.h>
main()
{
int i,j;
for(i=0;i<=6;i++)
{
for(j=0;j<3;j++)
{
if(i==0 || i==6)
printf("**");
else if(i==3 && j<2)
printf("**");
else if(j==2)
break;
else
{
printf("*");
break;
}
}
printf("\n");
}
}
Output
******
*
*
****
*
*
******
A very excellent blog post. I am thankful for your blog post. I have found a lot of approaches after visiting your post. How to read English alphabet
ReplyDelete