| Current Path : /var/www/html/venkat/old/old/ |
| Current File : /var/www/html/venkat/old/old/iit2015137_5.c |
#include<stdio.h>
int main()
{
char str1[100] , str2[100];
int i , j;
printf("enter the first string\n");
scanf("%s" , &str2[]);
printf("enter the second string\n");
scanf("%s" , &str2[]);
for(i=0;str1[i]!='\0';i++)
for(j=0;str2[j]!='\0';j++)
{
if(str1[i]=str2[j])
printf("%c" , str1[i]);
}
}