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