Thursday, 23 April 2015

Print '5'

main()
{
int a,b;
int n=1;
for (a=1;a<=3;a++)
{
for (b=1;b<=18;b++)
{
printf("*");
}
printf("\n");
}
for (a=1;a<=4;a++)
{
for (b=1;b<=4;b++)
{
printf("*");
}
printf("\n");
}
for (a=1;a<=3;a++)
{
for (b=1;b<=18;b++)
{
printf("*");
}
printf("\n");
}
for (a=1;a<=4;a++)
{
for (b=1;b<=14;b++)
{
printf(" ");
}
for (b=1;b<=4;b++)
{
printf("*");
}
printf("\n");
}
for (a=1;a<=3;a++)
{
for (b=1;b<=18;b++)
{
printf("*");
}
printf("\n");
}

}

No comments: