void main()
{
char n1[20],n2[20];
int i=0,j=0,k,v,c=0;
clrscr();
printf("enter the string\n");
scanf("%s",n1);
printf("\nenter the substring");
scanf("%s",n2);
while (n1[v] !='\0') v++;
{
for(k=0;k<v;k++)
if(n1[k]==n2[0]) break;
j=0;
while(n2[j] != '\0')
{
if( n2[c] == n1[k])
{c++;k++;}
j++;    }
}
if(j==c) printf("\nsub present");
else printf("\a\n\aboom!!!");
getch();
}
