Home Articles Print a block F using hash (#), where the F has a...

Print a block F using hash (#), where the F has a height of six characters and width of five and four characters.

SHARE

Write a C program to print a block F using hash (#), where the F has a height of six characters and width of five and four characters.
Solution:

#include <stdio.h>

void main()

{

printf(“#####\n”);

printf(“#\n”);

printf(“####\n”);

printf(“#\n”);

printf(“#\n”);

printf(“#\n”);

}

Output:

#####

#

####

#

#

#

Back to Programs list.