#include<stdio.h> #include <ctype.h> #include<string.h> int main() { char a[1000], b[1000]; while(gets(a)!=NULL) { for(int i=0;i<strlen(a);i++) { b[i] = tolower(a[i]); } for(int i=0;i<strlen(a);i++) { if(b[i]=='s'&&b[i+1]=='a'&&b[i+2]=='l'&&b[i+3]=='t') { puts(a); } } } } |
Double click to view unformatted code.