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


Comments

Anonymous said…
Win Exciting and Cool Prizes Everyday @ www.2vin.com, Everyone can win by answering simple questions.Earn points for referring your friends and exchange your points for cool gifts.