Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #107.76K
1 Posted Topic
[CODE]#include<stdio.h> #include<string.h> #include<conio.h> int main(void) { char s1[20],s2[10]; int x1,x2,j,k,i; printf("Enter string 1:"); gets(s1); printf("Enter string 2:"); gets(s2); x1=strlen(s1); x2=strlen(s2); for(i=0;i<=x1-x2;i++) { j=i; k=0; while((s1[j]==s2[k])&& (k<x2)) { j++; k++; } if(k==x2) printf("You were found...."); } getch(); } [/CODE] as goog as...
The End.
koberoc