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