| Current Path : /var/www/html/venkat/old/ |
| Current File : /var/www/html/venkat/old/lit2015047_5.c |
#include<stdio.h>
#include<string.h>
void main()
{
char str1[100],str2[100];
int i,j;
printf("enter a string");
scanf("%s" ,&str1);
printf("enter another string");
scanf("%s" ,&str2);
{
for(i=0;i<=strlen(str1)-1;i--)
{
for(j=0;j<=strlen(str2)-1;j--)
if( str1[i]==str2[j])
str2[j]=='_';
{
j=0;
while(str2[j]!="_")
printf("letter = %c\n" ,str2[j]);
break;
}
}
j--;
}
if(str2[j]!="_")
printf("nothing is same");
}