Posts

SHREE GANESHA PATTERN PROGRAM IN C - Coder Insect

Image
  C Program to Print  Shree Ganesha using patterns   In this example you will learn to print required pattern (as show in image below code) in C programming .  Here, delay() function is used to suspend executon of program for particular time. To include delay() function in program, use #include<dos.h> header file for windows and #include<unistd.h> header file for unix/linux system.   Also, printf("%*s",<s>,"text") is used to right align text by variable number of spaces. Color can be added to program using printf() function in C. We have 8 ANSI colors (can be doubled to 16 by considering standard and bold ) .   Colors used in our program:  printf("\033[1;31m");       //output in Bold Red color printf("\033[1;32m");       //output in Bold Green color printf("\033[1;33m");       //output in Bold Yellow color printf("\033[1;34m");       //output in Bold Blue color   ...