Q:

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. And also to print a big \'C\'

2

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. And also to print a big 'C'.

Expected Output:

######
#
#
#####
#
#
#

    ######
  ##      ##
 #
 #
 #
 #
 #
  ##      ##
    ######

 

 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C Basic Declarations and Expressions exercises

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Write a C program to print the following character... >>
<< Write a C program to get the C version you are usi...