//Program to print alphabet M in C Language with CBhashaGyan
#include<stdio.h>
int main()
{
int i, j;
for(i=1;i<=5;i++)
{
printf("\t"); //for horizontal tab
for(j=1;j<=5;j++)
{
if(j==1 || j==5)
printf(" *"); //space and star
else if((i==j || j==5-i+1) && i<=3)
printf(" *"); //space and star
else
printf(" "); //double space
#include<stdio.h>
int main()
{
int i, j;
for(i=1;i<=5;i++)
{
printf("\t"); //for horizontal tab
for(j=1;j<=5;j++)
{
if(j==1 || j==5)
printf(" *"); //space and star
else if((i==j || j==5-i+1) && i<=3)
printf(" *"); //space and star
else
printf(" "); //double space
No comments:
Post a Comment