Showing posts with label DESIGN PATTERN IN C. Show all posts
Showing posts with label DESIGN PATTERN IN C. Show all posts

Thursday, May 3, 2018

DESIGN PATTERN IN C

A very simple design pattern program that I wrote using C language.

I am currently accepting programming work, it project, school programming projects , thesis and capstone projects, IT consulting work and web development work kindly contact me in the following email address for further details.  If you want to advertise in my website kindly contact me also in my email address also. Thank you.

My email address are the following jakerpomperada@gmail.com and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.




Sample Program Output


Program Listing

design.c

/* May 2, 2018    */
/* Barangay Alijis, Bacolod City Negros Occidental Philippines */
/* Dev C++ */
/* Author : Mr. Jake R. Pomperada, MAED-IT */


#include <stdio.h>
#include <conio.h>


int main() 
{
     int i=0,j=0,k=0;
     char str[100];
     
     printf("======  DESIGN PATTERN IN C =====");
     printf("\n\n");
     printf("Created By Mr. Jake R. Pomperada, MAED-IT");
     printf("\n\n");
     printf("Give a String : ");
     scanf("%s",str);
     
     printf("\n\n");
     
     k=strlen(str);
     
     for (i=0; i<k; i++)
     {
         for (j=0; j<=i; j++)
          {
           printf(" %c ",str[j]);
          }
         printf("\n");
     }
    
    printf("\n\n\n\n");
    printf("===== END OF PROGRAM =====");
    printf("\n\n");
    system("pause");          
}