Advertisement

/* 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. */

#include<stdio.h>
int main( )
{
    printf("######\n");
    printf("#\n");
    printf("#\n");
    printf("#####\n");
    printf("#\n");
    printf("#\n");
    printf("#");
    return 0;
}

Output:



 

Back

Post a Comment

0 Comments