You are on page 1of 1

#include<iostream.

h>
#include<cstring>
using namespace std;
int rima(char s[30],char t[30])
{int i,j;i=0;
while(s[i]!=0)
i++;j=0;
while(t[j]!=0)
j++;if( (s[i]==t[j]) && (s[i-1]==t[j-1]) )
return 1;else return 0;}

You might also like