Your IP : 216.73.216.40


Current Path : /var/www/html/venkat/old/
Upload File :
Current File : /var/www/html/venkat/old/bim2015004_2.c

//program to print the similar characters in two strings
#include<stdio.h>
int main ()
{
	int i,j,a[i],b[j];
	char str1,str2;
	scanf("%c",&str1);
	scanf("%c",&str2);
	a[i]=strlen(str1);
	b[i]=strlen(str2);
	for(i=0;str1!=0;i++)
		for(j=0;b[j]!=0;j++)
			if(a[i]==b[j])
			printf("%c",a[i]);
}