Skip to main content

Posts

Showing posts from October 19, 2012

PATTERN IN STRINGS

LIST OF PROGRAMS #include<stdio.h> #include<conio.h> #include<string.h> void main() { char a[10],n,i,j; clrscr(); printf("ENTER THE WORD YOU WANT IN PATTERN\n"); gets(a); n=strlen(a); for(i=0;i<n;i++) { for(j=0;j<=i;j++) printf("%c",a[i]); printf("\n"); } getch(); } LIST OF PROGRAMS