#include<stdio.h> #include<string.h> int main(){ char s1[50]; while(gets(s1)!=NULL){ int len=strlen(s1); for(int i=0;i<len;i++){ if((s1[i] == 's' || s1[i] == 'S') && (s1[i + 1] == 'a' || s1[i + 1] == 'A') && (s1[i + 2] == 'l' || s1[i + 2] == 'L') && (s1[i + 3] == 'T' || s1[i + 3] == 't')){ puts(s1); } } } } |
Double click to view unformatted code.