Pages

Saturday, November 28, 2015

C Program to print E alphabate

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

******
*
*
****
*
*
******

1 comment:

  1. 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