Your IP : 216.73.216.40


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

#include<stdio.h>
int main()
{
 int i,j,x,y,z;
 char str1[100],str2[100];
 printf("enter the string1");
 gets(str1);
 printf("enter the strig2");
 gets(str2);
 x = strlen(str1);
 y = strlen(str2);
 z=x;
 if(x>y)
 z=y;

for(i=0;i<x;i++)
{
   for(j=i;j<x;j++)
   { while(str1[j]==str2[i]){
    {printf("%c",str1[j]);
    j=j+1;}}

    }}
 return 0;






}