Skip to main content

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

Popular posts from this blog

unix commands