w3resource logo

:

C Programming Exercises

C Exercises: Print a big C

C Basic Declarations and Expressions: Exercise-3 with Solution

Write a C program to print a big 'C'.

C Code:

#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);
}

Sample Output:

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

Solution

Improve this sample solution and post your code through Disqus