Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- int main()
- {
- int i=1;
- char szo1[30], szo2[30];
- gets(szo1);
- while ( gets(szo2) )
- {
- i++;
- if ( (strcmp( szo1 , szo2 ) ) == 0 ) {printf("%d\n",i); break; }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement